Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45278a8

Browse files
committed
#1704474: mark refleak test as specific to CPython
Patch by Christian Hudon.
1 parent 7646620 commit 45278a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_optparse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ def test_remove_nonexistent(self):
395395
self.assertRaises(self.parser.remove_option, ('foo',), None,
396396
ValueError, "no such option 'foo'")
397397

398+
@support.impl_detail('Relies on sys.getrefcount', cpython=True)
398399
def test_refleak(self):
399400
# If an OptionParser is carrying around a reference to a large
400401
# object, various cycles can prevent it from being GC'd in

0 commit comments

Comments
 (0)