Commit 8c2d5487 authored by Denis Bilenko's avatar Denis Bilenko

test__core.py: fix failure in test_io()

parent 6e72242a
......@@ -34,7 +34,11 @@ class Test(TestCase):
self.assertEqual(repr(core.EVENTS), 'gevent.core.EVENTS')
def test_io(self):
self.assertRaises(ValueError, core.loop().io, -1, 1)
if sys.platform == 'win32':
Error = IOError
else:
Error = ValueError
self.assertRaises(Error, core.loop().io, -1, 1)
self.assertRaises(ValueError, core.loop().io, 1, core.TIMER)
def test_timer(self):
......
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