[pypy-commit] pypy py3.5: missing gc.collect()
arigo
pypy.commits at gmail.com
Sun Jan 8 10:02:27 EST 2017
Author: Armin Rigo <arigo at tunes.org>
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
More information about the pypy-commit
mailing list