We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c2e399 commit fe37841Copy full SHA for fe37841
test/test_monitor.py
@@ -83,9 +83,9 @@ def test_cleanup_executors_on_client_close(self):
83
def test_no_thread_start_runtime_err_on_shutdown(self):
84
"""Test we silence noisy runtime errors fired when the MongoClient spawns a new thread
85
on process shutdown."""
86
- command = [sys.executable, "-c", "'from pymongo import MongoClient; c = MongoClient()'"]
+ command = [sys.executable, "-c", "from pymongo import MongoClient; c = MongoClient()"]
87
completed_process: subprocess.CompletedProcess = subprocess.run(
88
- " ".join(command), shell=True, capture_output=True
+ command, capture_output=True
89
)
90
91
self.assertFalse(completed_process.stderr)
0 commit comments