[pypy-commit] pypy py3.6: Emit warnings from unrelated older tests before catching the warnings from this precise test

arigo pypy.commits at gmail.com
Fri Sep 13 14:32:07 EDT 2019


Author: Armin Rigo <arigo at tunes.org>
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()


More information about the pypy-commit mailing list