Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r97473:b8f000ca2554
Date: 2019-09-13 20:31 +0200
http://bitbucket.org/pypy/pypy/changeset/b8f000ca2554/

Log:    Emit warnings from unrelated older tests before catching the
        warnings from this precise test

diff --git a/pypy/interpreter/test/apptest_coroutine.py 
b/pypy/interpreter/test/apptest_coroutine.py
--- a/pypy/interpreter/test/apptest_coroutine.py
+++ b/pypy/interpreter/test/apptest_coroutine.py
@@ -202,6 +202,7 @@
     import gc, warnings  # XXX: importing warnings is expensive untranslated
     async def foobaz():
         pass
+    gc.collect()   # emit warnings from unrelated older tests
     with warnings.catch_warnings(record=True) as l:
         foobaz()
         gc.collect()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to