Commit 3dad3d7b authored by Denis Bilenko's avatar Denis Bilenko

add test__nochild.py

parent 9ebbdd7c
import gevent.core
import unittest
class Test(unittest.TestCase):
if hasattr(gevent.core, 'child'):
def test(self):
loop = gevent.core.loop('nochild', default=True)
self.assertRaises(TypeError, loop.child, 1)
loop = gevent.core.loop(default=False)
self.assertRaises(TypeError, loop.child, 1)
if __name__ == '__main__':
unittest.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