summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_optparse.py
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2014-04-15 20:44:43 (GMT)
committerAndrew Kuchling <amk@amk.ca>2014-04-15 20:44:43 (GMT)
commitcb4069c329143e5abcdb0860e0eb6dd7d527a14c (patch)
treeb756f42aafa38e3c27b986234c2624f18f235406 /Lib/test/test_optparse.py
parent68e85e583484d1fde2170ea768413eae818aa050 (diff)
downloadcpython-cb4069c329143e5abcdb0860e0eb6dd7d527a14c.zip
cpython-cb4069c329143e5abcdb0860e0eb6dd7d527a14c.tar.gz
cpython-cb4069c329143e5abcdb0860e0eb6dd7d527a14c.tar.bz2
#1704474: mark refleak test as specific to CPython
Patch by Christian Hudon.
Diffstat (limited to 'Lib/test/test_optparse.py')
-rw-r--r--Lib/test/test_optparse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py
index 44927d6..dc2ef0b 100644
--- a/Lib/test/test_optparse.py
+++ b/Lib/test/test_optparse.py
@@ -383,6 +383,7 @@ class TestOptionParser(BaseTest):
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