[Python-checkins] cpython (2.7): #1704474: mark refleak test as specific to CPython

andrew.kuchling python-checkins at python.org
Tue Apr 15 22:44:52 CEST 2014


http://hg.python.org/cpython/rev/a1ef419c0cfb
changeset:   90337:a1ef419c0cfb
branch:      2.7
parent:      90332:0c7cf0e598e7
user:        Andrew Kuchling <amk at amk.ca>
date:        Tue Apr 15 16:44:43 2014 -0400
summary:
  #1704474: mark refleak test as specific to CPython

Patch by Christian Hudon.

files:
  Lib/test/test_optparse.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py
--- a/Lib/test/test_optparse.py
+++ b/Lib/test/test_optparse.py
@@ -383,6 +383,7 @@
         self.assertRaises(self.parser.remove_option, ('foo',), None,
                           ValueError, "no such option 'foo'")
 
+    @test_support.impl_detail('Relies on sys.getrefcount', cpython=True)
     def test_refleak(self):
         # If an OptionParser is carrying around a reference to a large
         # object, various cycles can prevent it from being GC'd in

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list