[pypy-commit] pypy py3k: gc unexpected cruft before the test
pjenvey
noreply at buildbot.pypy.org
Sun May 5 00:31:50 CEST 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63853:725a332705f6
Date: 2013-05-04 15:31 -0700
http://bitbucket.org/pypy/pypy/changeset/725a332705f6/
Log: gc unexpected cruft before the test
diff --git a/pypy/module/_io/test/test_io.py b/pypy/module/_io/test/test_io.py
--- a/pypy/module/_io/test/test_io.py
+++ b/pypy/module/_io/test/test_io.py
@@ -340,6 +340,7 @@
f = open(*args, **kwargs)
r = repr(f)
+ gc.collect()
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
f = None
diff --git a/pypy/module/_socket/test/test_sock_app.py b/pypy/module/_socket/test/test_sock_app.py
--- a/pypy/module/_socket/test/test_sock_app.py
+++ b/pypy/module/_socket/test/test_sock_app.py
@@ -575,6 +575,7 @@
s = _socket.socket(_socket.AF_INET, _socket.SOCK_STREAM)
r = repr(s)
+ gc.collect()
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
s = None
More information about the pypy-commit
mailing list