Skip to content

Commit

Permalink
#1704474: mark refleak test as specific to CPython
Browse files Browse the repository at this point in the history
Patch by Christian Hudon.
  • Loading branch information
akuchling committed Apr 15, 2014
1 parent 7646620 commit 45278a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_optparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ def test_remove_nonexistent(self):
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
Expand Down

0 comments on commit 45278a8

Please sign in to comment.