From: Andrew Kuchling Date: Tue, 15 Apr 2014 20:44:43 +0000 (-0400) Subject: #1704474: mark refleak test as specific to CPython X-Git-Tag: v2.7.7rc1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb4069c329143e5abcdb0860e0eb6dd7d527a14c;p=python #1704474: mark refleak test as specific to CPython Patch by Christian Hudon. --- diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index 44927d6046..dc2ef0b786 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