diff -r 849826a900d2 Lib/test/test_importlib/test_locks.py --- a/Lib/test/test_importlib/test_locks.py Tue Oct 25 21:49:19 2016 -0500 +++ b/Lib/test/test_importlib/test_locks.py Fri Oct 28 09:22:14 2016 +0200 @@ -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