8000 gh-120198: Fix crash when two thread edit __class__ by Fidget-Spinner · Pull Request #120195 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120198: Fix crash when two thread edit __class__ #120195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 11, 2024
Prev Previous commit
skip test if no threads
  • Loading branch information
Fidget-Spinner committed Jun 10, 2024
commit b70dc0720cb2447e94a58061b485ecfee3a7971c
3 changes: 2 additions & 1 deletion Lib/test/test_super.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import threading
import unittest
from unittest.mock import patch
from test.support import import_helper
from test.support import import_helper, threading_helper


ADAPTIVE_WARMUP_DELAY = 2
Expand Down Expand Up @@ -506,6 +506,7 @@ def some(cls):
for _ in range(ADAPTIVE_WARMUP_DELAY):
C.some(C)

@threading_helper.requires_working_threading()
def test___class___modification_multithreaded(self):
""" Note: this test isn't actually testing anything on its own.
It requires a sys audithook to be set to crash on older Python.
Expand Down
0