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 3e2d72c commit 0bc8fe6Copy full SHA for 0bc8fe6
1 file changed
tests/thread_safety/test_thread_safety_module.py
@@ -30,13 +30,14 @@ def increment(self):
30
time.sleep(0.001) # Simulate some work
31
self.counter = current + 1
32
33
- obj = TestClass()
34
threads = []
35
36
def worker():
37
for _ in range(10):
38
obj.increment()
39
+ obj = TestClass()
40
+
41
# Create multiple threads
42
for _ in range(5):
43
thread = threading.Thread(target=worker)
0 commit comments