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.6.1rc1~339 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f79606debd70b4ee65df6928d1090b5ebc7a8047;p=thirdparty%2FPython%2Fcpython.git 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 b2aadff289b6..dbce9c2dfdfe 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