Commit 12a103be authored by Denis Bilenko's avatar Denis Bilenko

fix test not fail with IOError

parent 8890d3bd
......@@ -73,7 +73,7 @@ class Test(greentest.TestCase):
assert 'Invalid switch' in str(result), repr(str(result))
def test_wait_writer_invalid_switch(self):
p = proc.spawn(proc.wrap_errors(AssertionError, greenlet.wait_writer), 1)
p = proc.spawn(proc.wrap_errors(AssertionError, greenlet.wait_writer), 0)
gevent.spawn(p.greenlet.switch, None)
result = p.wait()
assert isinstance(result, AssertionError), instance
......
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