Author: Ronan Lamy <[email protected]>
Branch: py3.6
Changeset: r97032:73b10d9d0f3e
Date: 2019-07-29 19:29 +0100
http://bitbucket.org/pypy/pypy/changeset/73b10d9d0f3e/
Log: Skip pypy-incompatible test (see issue #3048)
diff --git a/lib-python/3/test/test_warnings/__init__.py
b/lib-python/3/test/test_warnings/__init__.py
--- a/lib-python/3/test/test_warnings/__init__.py
+++ b/lib-python/3/test/test_warnings/__init__.py
@@ -843,13 +843,14 @@
class PyWarningsDisplayTests(WarningsDisplayTests, unittest.TestCase):
module = py_warnings
+ @support.cpython_only # no tracemalloc on pypy
def test_tracemalloc(self):
self.addCleanup(support.unlink, support.TESTFN)
with open(support.TESTFN, 'w') as fp:
fp.write(textwrap.dedent("""
import gc
-
+
def func():
f = open(__file__)
# Fully initialise GC for clearer error
@@ -868,8 +869,8 @@
stderr = '\n'.join(stderr.splitlines())
stderr = re.sub('<.*>', '<...>', stderr)
expected = textwrap.dedent('''
- {fname}:9: ResourceWarning: unclosed file <...>
- f = None
+ {fname}:10: ResourceWarning: unclosed file <...>
+ gc.collect()
Object allocated at (most recent call first):
File "{fname}", lineno 5
f = open(__file__)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit