Commit fcd7d70d authored by Denis Bilenko's avatar Denis Bilenko

test__core.py: add a few tests for argument checks in watchers

parent 5113ea8f
......@@ -33,6 +33,16 @@ class Test(TestCase):
self.assertEqual(str(core.EVENTS), 'gevent.core.EVENTS')
self.assertEqual(repr(core.EVENTS), 'gevent.core.EVENTS')
def test_io(self):
self.assertRaises(ValueError, core.loop().io, -1, 1)
self.assertRaises(ValueError, core.loop().io, 1, core.TIMER)
def test_timer(self):
self.assertRaises(ValueError, core.loop().timer, 1, -1)
def test_signal(self):
self.assertRaises(ValueError, core.loop().signal, 1000)
if __name__ == '__main__':
main()
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