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

andrew.kuchling python-checkins at python.org
Wed Apr 16 03:16:58 CEST 2014


http://hg.python.org/cpython/rev/c76d782cb9df
changeset:   90347:c76d782cb9df
branch:      3.4
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
@@ -395,6 +395,7 @@
         self.assertRaises(self.parser.remove_option, ('foo',), None,
                           ValueError, "no such option 'foo'")
 
+    @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