From ad68ff665f301b254014d8c8855d4d56e76a5306 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Thu, 3 Sep 2020 09:57:04 -0300 Subject: [PATCH] Missing a platform.system() check --- tests/test_streaming.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_streaming.py b/tests/test_streaming.py index 531352a..8d06478 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -239,10 +239,11 @@ def test_not_fast_enough_quad( results, diff = time_quad_ex delay = max(diff - cancel_delay, 0) results = tractor.run(cancel_after, delay, arbiter_addr=arb_addr) - if platform.system() == 'Windows' and results is not None: + system = platform.system() + if system in ('Windows', 'Darwin') and results is not None: # In Windows CI it seems later runs are quicker then the first # so just ignore these - print("Woa there windows caught your breath eh?") + print(f"Woa there {system} caught your breath eh?") else: # should be cancelled mid-streaming assert results is None