summaryrefslogtreecommitdiff
path: root/Lib/test/lock_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/lock_tests.py')
-rw-r--r--Lib/test/lock_tests.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py
index 855ad46ba0..966f9bd7ca 100644
--- a/Lib/test/lock_tests.py
+++ b/Lib/test/lock_tests.py
@@ -257,10 +257,8 @@ class EventTests(BaseTestCase):
results1 = []
results2 = []
def f():
- evt.wait()
- results1.append(evt.is_set())
- evt.wait()
- results2.append(evt.is_set())
+ results1.append(evt.wait())
+ results2.append(evt.wait())
b = Bunch(f, N)
b.wait_for_started()
_wait()
@@ -284,11 +282,9 @@ class EventTests(BaseTestCase):
results2 = []
N = 5
def f():
- evt.wait(0.0)
- results1.append(evt.is_set())
+ results1.append(evt.wait(0.0))
t1 = time.time()
- evt.wait(0.2)
- r = evt.is_set()
+ r = evt.wait(0.2)
t2 = time.time()
results2.append((r, t2 - t1))
Bunch(f, N).wait_for_finished()