=== modified file 'Lib/test/test_optparse.py' --- Lib/test/test_optparse.py 2014-04-14 21:02:29 +0000 +++ Lib/test/test_optparse.py 2014-04-15 14:33:23 +0000 @@ -385,6 +385,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