From 45278a898c0d6ac5a38a07b525fb216d9afa36df Mon Sep 17 00:00:00 2001
From: Andrew Kuchling <amk@amk.ca>
Date: Tue, 15 Apr 2014 16:44:43 -0400
Subject: [PATCH] #1704474: mark refleak test as specific to CPython

Patch by Christian Hudon.
---
 Lib/test/test_optparse.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py
index 3c8c6124a2..7621c24305 100644
--- a/Lib/test/test_optparse.py
+++ b/Lib/test/test_optparse.py
@@ -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
-- 
2.40.0