Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r89415:4c3fa9a270fd
Date: 2017-01-08 16:01 +0100
http://bitbucket.org/pypy/pypy/changeset/4c3fa9a270fd/
Log: missing gc.collect()
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
@@ -1003,12 +1003,11 @@
def __del__(self):
warn("test")
-a=A()
+A()
+import gc; gc.collect()
"""
rc, out, err = assert_python_ok("-c", code)
- # note: "__main__" filename is not correct, it should be the name
- # of the script
- self.assertEqual(err, b'__main__:7: UserWarning: test')
+ self.assertEqual(err, b'-c:7: UserWarning: test')
def test_late_resource_warning(self):
# Issue #21925: Emitting a ResourceWarning late during the Python
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit