def tearDown(self): if self.old_switchinterval is not None: sys.setswitchinterval(self.old_switchinterval)