Skip to content

Commit 0bc8fe6

Browse files
committed
V4.0.6
1 parent 3e2d72c commit 0bc8fe6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/thread_safety/test_thread_safety_module.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ def increment(self):
3030
time.sleep(0.001) # Simulate some work
3131
self.counter = current + 1
3232

33-
obj = TestClass()
3433
threads = []
3534

3635
def worker():
3736
for _ in range(10):
3837
obj.increment()
3938

39+
obj = TestClass()
40+
4041
# Create multiple threads
4142
for _ in range(5):
4243
thread = threading.Thread(target=worker)

0 commit comments

Comments
 (0)