(original) (raw)

changeset: 105524:1bb2f4b8440e branch: 3.6 parent: 105522:fd1718badb67 user: Xavier de Gaye xdegaye@users.sourceforge.net date: Thu Dec 08 11:26:18 2016 +0100 files: Lib/test/test_importlib/test_locks.py description: Issue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator. diff -r fd1718badb67 -r 1bb2f4b8440e Lib/test/test_importlib/test_locks.py --- a/Lib/test/test_importlib/test_locks.py Thu Dec 08 11:06:56 2016 +0100 +++ b/Lib/test/test_importlib/test_locks.py Thu Dec 08 11:26:18 2016 +0100 @@ -57,7 +57,7 @@ def setUp(self): try: self.old_switchinterval = sys.getswitchinterval() - sys.setswitchinterval(0.000001) + support.setswitchinterval(0.000001) except AttributeError: self.old_switchinterval = None /xdegaye@users.sourceforge.net