You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
regrtest --parallel-threads shares TestCase._cleanups between threads #160543
regrtest's --parallel-threads runs the same test concurrently in multiple threads. To do so it creates independent copies of the tests using copy.copy():
copy.copy() does a shallow copy, so the test's _cleanups list is shared between threads. Each thread runs the test's doCleanup method, popping and running methods from _cleanups until it's empty:
Activity
pythongh-160543: Isolate cleanup stacks in parallel test workers