Commit 45278a89 authored by Andrew Kuchling's avatar Andrew Kuchling

#1704474: mark refleak test as specific to CPython

Patch by Christian Hudon.
parent 76466202
...@@ -395,6 +395,7 @@ class TestOptionParser(BaseTest): ...@@ -395,6 +395,7 @@ class TestOptionParser(BaseTest):
self.assertRaises(self.parser.remove_option, ('foo',), None, self.assertRaises(self.parser.remove_option, ('foo',), None,
ValueError, "no such option 'foo'") ValueError, "no such option 'foo'")
@support.impl_detail('Relies on sys.getrefcount', cpython=True)
def test_refleak(self): def test_refleak(self):
# If an OptionParser is carrying around a reference to a large # If an OptionParser is carrying around a reference to a large
# object, various cycles can prevent it from being GC'd in # object, various cycles can prevent it from being GC'd in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment