Commit 850b9103 authored by Jason Madden's avatar Jason Madden

Fix the new core watchers tests on appveyor.

parent 59bf7752
from __future__ import absolute_import, print_function
import unittest
import greentest
from gevent import core
......@@ -58,16 +58,19 @@ class Test(greentest.TestCase):
self.assertEqual(lst, [(), 25])
loop.destroy()
def test_invalid_fd(self):
# XXX: windows?
loop = core.loop(default=False)
# Negative case caught everywhere
self.assertRaises(ValueError, loop.io, -1, core.READ)
# Negative case caught everywhere. ValueError
# on POSIX, OSError on Windows
with self.assertRaises((ValueError, OSError)):
loop.io(-1, core.READ)
loop.destroy()
@greentest.skipOnAppVeyor("Stdout can't be watched on Win32")
def test_reuse_io(self):
loop = core.loop(default=False)
......
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