From 85bafb5d6bd475f41670c43264b485ab226054d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Fri, 4 Jun 2021 17:53:57 +0200 Subject: [PATCH] more coverage --- tests/test_coding/test_concurrent.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_coding/test_concurrent.py b/tests/test_coding/test_concurrent.py index 50cb36a4..3e3c396a 100644 --- a/tests/test_coding/test_concurrent.py +++ b/tests/test_coding/test_concurrent.py @@ -36,11 +36,8 @@ class TestConcurrent(unittest.TestCase): self.assertEqual(len(tc), 3) for t in tc: self.assertIsInstance(t, Threading) - tc.append(Threading(5)) - tc.add(Threading(6)) - tc.start() - tc.terminate() - tc.join() + tc.append(Threading(5)).add(Threading(6)) + tc.start().terminate().join() self.assertEqual(dct, {2: True, 3: True, 4: True, 5: True, 6: True}) def test_cancellable_callback(self): -- GitLab