Commit 5861b021 authored by Denis Bilenko's avatar Denis Bilenko

update test__greenlet.py

parent 6a0d0853
...@@ -575,7 +575,7 @@ class TestBasic(greentest.TestCase): ...@@ -575,7 +575,7 @@ class TestBasic(greentest.TestCase):
g = gevent.Greenlet(func, 0.01, return_value=5) g = gevent.Greenlet(func, 0.01, return_value=5)
g.link(lambda x: link_test.append(x)) g.link(lambda x: link_test.append(x))
assert not g assert not g, bool(g)
assert not g.dead assert not g.dead
assert not g.started assert not g.started
assert not g.ready() assert not g.ready()
...@@ -584,7 +584,7 @@ class TestBasic(greentest.TestCase): ...@@ -584,7 +584,7 @@ class TestBasic(greentest.TestCase):
assert g.exception is None assert g.exception is None
g.start() g.start()
assert not g assert g # changed
assert not g.dead assert not g.dead
assert g.started # changed assert g.started # changed
assert not g.ready() assert not g.ready()
...@@ -593,7 +593,7 @@ class TestBasic(greentest.TestCase): ...@@ -593,7 +593,7 @@ class TestBasic(greentest.TestCase):
assert g.exception is None assert g.exception is None
gevent.sleep(0.001) gevent.sleep(0.001)
assert g # changed assert g
assert not g.dead assert not g.dead
assert g.started assert g.started
assert not g.ready() assert not g.ready()
......
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