Skip to content

Commit fe37841

Browse files
authored
PYTHON-4147-fix: Remove quote wrapping and remove shell=true usage (mongodb#1513)
1 parent 5c2e399 commit fe37841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_monitor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ def test_cleanup_executors_on_client_close(self):
8383
def test_no_thread_start_runtime_err_on_shutdown(self):
8484
"""Test we silence noisy runtime errors fired when the MongoClient spawns a new thread
8585
on process shutdown."""
86-
command = [sys.executable, "-c", "'from pymongo import MongoClient; c = MongoClient()'"]
86+
command = [sys.executable, "-c", "from pymongo import MongoClient; c = MongoClient()"]
8787
completed_process: subprocess.CompletedProcess = subprocess.run(
88-
" ".join(command), shell=True, capture_output=True
88+
command, capture_output=True
8989
)
9090

9191
self.assertFalse(completed_process.stderr)

0 commit comments

Comments
 (0)