Commit ebc3f622 authored by Denis Bilenko's avatar Denis Bilenko

update test__greenletset.py

parent 129ae841
...@@ -73,13 +73,13 @@ class Test(greentest.TestCase): ...@@ -73,13 +73,13 @@ class Test(greentest.TestCase):
p2 = gevent.spawn(u2) p2 = gevent.spawn(u2)
s = pool.GreenletSet([p1, p2]) s = pool.GreenletSet([p1, p2])
assert u1.shot_count == 0, u1.shot_count assert u1.shot_count == 0, u1.shot_count
s.killonce(p1) s.killone(p1)
assert u1.shot_count == 0, u1.shot_count assert u1.shot_count == 0, u1.shot_count
gevent.sleep(0) gevent.sleep(0)
assert u1.shot_count == 1, u1.shot_count assert u1.shot_count == 1, u1.shot_count
s.killonce(p1) s.killone(p1)
assert u1.shot_count == 1, u1.shot_count assert u1.shot_count == 1, u1.shot_count
s.killonce(p1) s.killone(p1)
assert u2.shot_count == 0, u2.shot_count assert u2.shot_count == 0, u2.shot_count
s.kill() s.kill()
s.kill() s.kill()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment