From ea2fa09ca2266c99149b04aa5e57b8646da7710b Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Sun, 16 Apr 2017 16:19:43 +0100
Subject: [PATCH] Gaargh, it was still broken!

---
 tests/test_async.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/test_async.py b/tests/test_async.py
index 25168d3b8..5b1d8abf4 100644
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -489,4 +489,7 @@ def test_mutex():
         t1.join()
         t2.join()
 
-        assert t[0].method2start > t[0].method1end
+        # Either t1 has to start and
+        # finish before t2 or vice versa
+        assert (t[0].method2start > t[0].method1end or
+                t[0].method1start > t[0].method2end)
-- 
GitLab