]> granicus.if.org Git - python/commitdiff
#1704474: mark refleak test as specific to CPython
authorAndrew Kuchling <amk@amk.ca>
Tue, 15 Apr 2014 20:44:43 +0000 (16:44 -0400)
committerAndrew Kuchling <amk@amk.ca>
Tue, 15 Apr 2014 20:44:43 +0000 (16:44 -0400)
Patch by Christian Hudon.

Lib/test/test_optparse.py

index 3c8c6124a2538f1271edb486a8b97b9b84e9c483..7621c2430554bd5ea652142336e38be0c01cfd0d 100644 (file)
@@ -395,6 +395,7 @@ class TestOptionParser(BaseTest):
         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