removed conditional check in add_timeout()

This commit is contained in:
FemtosecondLaser 2021-11-29 22:56:50 +00:00 committed by Victor Shyba
parent bf7745ec8d
commit 9908775576

View file

@ -201,8 +201,7 @@ class AsyncioTestCase(unittest.TestCase):
task.cancel() task.cancel()
def add_timeout(self): def add_timeout(self):
if self.TIMEOUT: self.loop.call_later(self.TIMEOUT, self.cancel)
self.loop.call_later(self.TIMEOUT, self.cancel)
class AdvanceTimeTestCase(AsyncioTestCase): class AdvanceTimeTestCase(AsyncioTestCase):