Author: Manuel Jacob <[email protected]>
Branch: py3.3
Changeset: r76167:c3bca8f186f6
Date: 2015-02-27 11:10 +0100
http://bitbucket.org/pypy/pypy/changeset/c3bca8f186f6/

Log:    Adapt lib-python test_xml_etree to PyPy.

diff --git a/lib-python/3/test/test_xml_etree.py 
b/lib-python/3/test/test_xml_etree.py
--- a/lib-python/3/test/test_xml_etree.py
+++ b/lib-python/3/test/test_xml_etree.py
@@ -15,7 +15,7 @@
 
 from itertools import product
 from test import support
-from test.support import TESTFN, findfile, import_fresh_module, gc_collect
+from test.support import TESTFN, findfile, import_fresh_module, gc_collect, 
impl_detail
 
 # pyET is the pure-Python implementation.
 #
@@ -1318,6 +1318,7 @@
         self.assertEqual(t.find('.//paragraph').text,
             'A new cultivar of Begonia plant named \u2018BCT9801BEG\u2019.')
 
+    @impl_detail
     def test_bug_xmltoolkit63(self):
         # Check reference leak.
         def xmltoolkit63():
@@ -1522,6 +1523,7 @@
         wref = weakref.ref(e, wref_cb)
         self.assertEqual(wref().tag, 'e')
         del e
+        gc_collect()
         self.assertEqual(flag, True)
         self.assertEqual(wref(), None)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to