Issue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator.

This commit is contained in:
Xavier de Gaye 2016-12-08 11:26:18 +01:00
parent 7522ef402c
commit f79606debd
1 changed files with 1 additions and 1 deletions

View File

@ -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