Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.5
Changeset: r88365:15f0dd6bf71a
Date: 2016-11-13 19:11 +0100
http://bitbucket.org/pypy/pypy/changeset/15f0dd6bf71a/
Log: Call gc.collect() multiple times to be sure to free the file.
diff --git a/lib-python/3/test/test_sax.py b/lib-python/3/test/test_sax.py
--- a/lib-python/3/test/test_sax.py
+++ b/lib-python/3/test/test_sax.py
@@ -16,7 +16,6 @@
from xml.sax.xmlreader import InputSource, AttributesImpl, AttributesNSImpl
from io import BytesIO, StringIO
import codecs
-import gc
import os.path
import shutil
from test import support
@@ -180,7 +179,7 @@
with self.assertRaises(SAXException):
self.check_parse(TESTFN)
# Collect leaked file.
- gc.collect()
+ support.gc_collect()
with open(TESTFN, 'rb') as f:
with self.assertRaises(SAXException):
self.check_parse(f)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit