diff --git a/satella/__init__.py b/satella/__init__.py index fc7c51ff35e0225d077826ccc80977891575acb5..f059db8f117c51b963a554746bc4a30e259d85f8 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1,2 +1,2 @@ # coding=UTF-8 -__version__ = '2.0.25a1' +__version__ = '2.0.25a2' diff --git a/tests/test_coding/test_concurrent.py b/tests/test_coding/test_concurrent.py index 6011ed434b76981b09d5fae13e4af09ca49e7371..672a5eba93a00df06a3a632c8c004f80488011c5 100644 --- a/tests/test_coding/test_concurrent.py +++ b/tests/test_coding/test_concurrent.py @@ -7,6 +7,18 @@ from satella.coding import CallableGroup class TestCallableGroup(unittest.TestCase): + def test_callable_group_some_raise(self): + cg = CallableGroup(gather=True) + cg.add(lambda: dupa) + cg.add(lambda: 5) + self.assertRaises(NameError, lambda: cg()) + + cg = CallableGroup(gather=True, swallow_exceptions=True) + cg.add(lambda: dupa) + cg.add(lambda: 5) + self.assertEquals(cg()[1], 5) + self.assertIsInstance(cg()[0], NameError) + def test_callable_group(self): a = {