2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 06:25:34 +00:00

[2353] Don't call real sleep() in mock function

This commit is contained in:
Mukund Sivaraman
2012-12-06 07:06:55 +05:30
parent ec4581da1a
commit bae03c0fbf

View File

@@ -1727,7 +1727,6 @@ class TestBossComponents(unittest.TestCase):
def _my_sleep(nsec): def _my_sleep(nsec):
global attempts global attempts
attempts += 1 attempts += 1
return tmp_sleep(nsec)
time.sleep = _my_sleep time.sleep = _my_sleep
thrown = False thrown = False