Skip to content
Snippets Groups Projects
Commit 1a12d106 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

more coverage

parent 2c86afe7
No related branches found
No related tags found
No related merge requests found
......@@ -41,11 +41,15 @@ class TestConcurrent(unittest.TestCase):
self.assertFalse(ms.insert_and_check(4))
def test_future_collection_exception(self):
fc = FutureCollection([PythonFuture(), PythonFuture()])
fc = FutureCollection([PythonFuture()])
fc += PythonFuture()
fc.set_running_or_notify_cancel()
fc[0].set_exception(IndexError())
fc[1].set_exception(ValueError())
self.assertIsInstance(fc.exception(), IndexError)
fc += [PythonFuture(), PythonFuture()]
fc = fc + FutureCollection([PythonFuture()])
fc + [PythonFuture(), PythonFuture()]
def test_future_collection_callbacks_one(self):
a = {'count': 0}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment