# Bug report I noticed a spurious test failure in `test_lock_two_threads` when running the test suite. I'll put up a PR to fix this. ``` test_lock_two_threads (test.test_capi.test_misc.Test_PyLock.test_lock_two_threads) ... Assertion failed: (test_data.m.v == 3), function test_lock_two_threads, file test_lock.c, line 82. ``` <details> <summary>Stack trace</summary> ``` test_lock_two_threads (test.test_capi.test_misc.Test_PyLock.test_lock_two_threads) ... Assertion failed: (test_data.m.v == 3), function test_lock_two_threads, file test_lock.c, line 82. Fatal Python error: Aborted Current thread 0x00007ff8466c6e80 (most recent call first): File "/Users/sgross/Projects/cpython/Lib/unittest/case.py", line 589 in _callTestMethod File "/Users/sgross/Projects/cpython/Lib/unittest/case.py", line 636 in run File "/Users/sgross/Projects/cpython/Lib/unittest/case.py", line 692 in __call__ File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 122 in run File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 84 in __call__ File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 122 in run File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 84 in __call__ File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 122 in run File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 84 in __call__ File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 122 in run File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 84 in __call__ File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 122 in run File "/Users/sgross/Projects/cpython/Lib/unittest/suite.py", line 84 in __call__ File "/Users/sgross/Projects/cpython/Lib/unittest/runner.py", line 240 in run File "/Users/sgross/Projects/cpython/Lib/test/support/__init__.py", line 1166 in _run_suite File "/Users/sgross/Projects/cpython/Lib/test/support/__init__.py", line 1293 in run_unittest File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/single.py", line 36 in run_unittest File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/single.py", line 92 in test_func File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/single.py", line 48 in regrtest_runner File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/single.py", line 95 in _load_run_test File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/single.py", line 138 in _runtest_env_changed_exc File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/single.py", line 238 in _runtest File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/single.py", line 266 in run_single_test File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/worker.py", line 89 in worker_process File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/worker.py", line 112 in main File "/Users/sgross/Projects/cpython/Lib/test/libregrtest/worker.py", line 116 in <module> File "<frozen runpy>", line 88 in _run_code File "<frozen runpy>", line 198 in _run_module_as_main ``` </details> <!-- gh-linked-prs --> ### Linked PRs * gh-111124 <!-- /gh-linked-prs -->