Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb9ab0f

Browse files
author
Xavier de Gaye
committed
Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator.
1 parent f79606d commit cb9ab0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_threading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def test_is_alive_after_fork(self):
462462
self.addCleanup(sys.setswitchinterval, old_interval)
463463

464464
# Make the bug more likely to manifest.
465-
sys.setswitchinterval(1e-6)
465+
test.support.setswitchinterval(1e-6)
466466

467467
for i in range(20):
468468
t = threading.Thread(target=lambda: None)

0 commit comments

Comments
 (0)