Author: Raffael Tfirst <raffael.tfi...@gmail.com>
Branch: py3.5-async
Changeset: r86214:ce0987e21403
Date: 2016-08-16 11:20 +0200
http://bitbucket.org/pypy/pypy/changeset/ce0987e21403/

Log:    Fix async with test, fixes timing for messages expected in assert

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
@@ -44,5 +44,11 @@
 finally:
     loop.close()
 
-assert cor.res == "- coro 1: waiting for lock - coro 1: holding the lock - 
coro 2: waiting for lock - coro 1: releasing the lock - coro 2: holding the 
lock - coro 2: releasing the lock -"
+assert "coro 1: waiting for lock" in cor.res
+assert "coro 1: holding the lock" in cor.res
+assert "coro 1: releasing the lock" in cor.res
+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")
         """
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to