Author: Raffael Tfirst <[email protected]>
Branch: py3.5-async
Changeset: r86085:9faaeb88a806
Date: 2016-08-08 19:02 +0200
http://bitbucket.org/pypy/pypy/changeset/9faaeb88a806/
Log: remove setup_class in test_asyncio, make better use of
test_gil_issue
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
@@ -2,16 +2,13 @@
spaceconfig =
dict(usemodules=["select","_socket","thread","signal","struct","_multiprocessing","array","_posixsubprocess","fcntl","unicodedata"])
- def setup_class(cls):
- cls.space.appexec([], """():
+ def test_gil_issue(self):
+ # the problem occured at await asyncio.open_connection after calling
run_until_complete
+ """
import encodings.idna
import asyncio
async def f():
reader, writer = await asyncio.open_connection('example.com', 80)
loop = asyncio.get_event_loop()
- loop.run_until_complete(f())""")
-
- def test_gil_issue(self):
- #needed to execute setup_call in the first place
- assert 1==1
\ No newline at end of file
+ loop.run_until_complete(f())"""
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit