예제 #1
0
파일: test_locks.py 프로젝트: za/cpython
 def setUp(self):
     try:
         self.old_switchinterval = sys.getswitchinterval()
         support.setswitchinterval(0.000001)
     except AttributeError:
         self.old_switchinterval = None
예제 #2
0
파일: test_locks.py 프로젝트: 1st1/cpython
 def setUp(self):
     try:
         self.old_switchinterval = sys.getswitchinterval()
         support.setswitchinterval(0.000001)
     except AttributeError:
         self.old_switchinterval = None