Commits

Philip Jenvey committed 725a332

gc unexpected cruft before the test

  • Participants
  • Parent commits 00cc4cb
  • Branches py3k

Comments (0)

Files changed (2)

pypy/module/_io/test/test_io.py

 
         f = open(*args, **kwargs)
         r = repr(f)
+        gc.collect()
         with warnings.catch_warnings(record=True) as w:
             warnings.simplefilter('always')
             f = None

pypy/module/_socket/test/test_sock_app.py

 
         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