Commit 2681a9e9 authored by Ralf Schmitt's avatar Ralf Schmitt

test that pools can't be created with size==0

parent 904ac85c
......@@ -153,6 +153,10 @@ class PoolBasicTests(greentest.TestCase):
result = p.apply(lambda a: ('foo', a), (1, ))
self.assertEqual(result, ('foo', 1))
def test_init_zerosize(self):
self.switch_expected = False
self.assertRaises(ValueError, self.klass, 0)
#
# tests from standard library test/test_multiprocessing.py
......
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