We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e89d38 commit 9f2891dCopy full SHA for 9f2891d
.evergreen/scripts/run_tests.py
@@ -173,6 +173,7 @@ def run() -> None:
173
return
174
175
# Run local tests.
176
+ print(f"Running tests with args: {TEST_ARGS + sys.argv[1:]}")
177
ret = pytest.main(TEST_ARGS + sys.argv[1:])
178
if ret != 0:
179
sys.exit(ret)
pymongo/logger.py
@@ -114,8 +114,9 @@ def flush(self):
114
self.capacity = self.original_capacity
115
116
def clear(self):
117
- self.buffer.clear()
118
- self.capacity = self.original_capacity
+ with self.lock:
+ self.buffer.clear()
119
+ self.capacity = self.original_capacity
120
121
122
if os.environ.get("DEBUG_LOG"):
0 commit comments