From: Xavier de Gaye Date: Thu, 8 Dec 2016 10:26:18 +0000 (+0100) Subject: Issue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator. X-Git-Tag: v3.7.0a1~1811^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f79606debd70b4ee65df6928d1090b5ebc7a8047;p=python Issue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator. --- diff --git a/Lib/test/test_importlib/test_locks.py b/Lib/test/test_importlib/test_locks.py index b2aadff289..dbce9c2dfd 100644 --- a/Lib/test/test_importlib/test_locks.py +++ b/Lib/test/test_importlib/test_locks.py @@ -57,7 +57,7 @@ if threading is not None: def setUp(self): try: self.old_switchinterval = sys.getswitchinterval() - sys.setswitchinterval(0.000001) + support.setswitchinterval(0.000001) except AttributeError: self.old_switchinterval = None