Author: Raffael Tfirst <raffael.tfi...@gmail.com>
Branch: py3.5-async
Changeset: r86222:034dc2c2ce1c
Date: 2016-08-16 16:18 +0200
http://bitbucket.org/pypy/pypy/changeset/034dc2c2ce1c/

Log:    Fix async with test, coroutines can assign lock in any order, but
        release of one lock has to appear before hold of the other lock

diff --git a/pypy/module/_asyncio/test/test_asyncio.py 
b/pypy/module/_asyncio/test/test_asyncio.py
--- a/pypy/module/_asyncio/test/test_asyncio.py
+++ b/pypy/module/_asyncio/test/test_asyncio.py
@@ -50,5 +50,6 @@
 assert "coro 2: waiting for lock" in cor.res
 assert "coro 2: holding the lock" in cor.res
 assert "coro 2: releasing the lock" in cor.res
-assert cor.res.find("coro 1: releasing the lock") < cor.res.find("coro 2: 
holding the lock")
+assert cor.res.find("coro 1: releasing the lock") < cor.res.find("coro 2: 
holding the lock") or \
+cor.res.find("coro 2: releasing the lock") < cor.res.find("coro 1: holding the 
lock")
         """
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to