Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r60360:0b275da37609
Date: 2013-01-22 18:31 -0800
http://bitbucket.org/pypy/pypy/changeset/0b275da37609/
Log: pypy lacks sys.getrefcount
diff --git a/lib-python/3.2/test/test_optparse.py
b/lib-python/3.2/test/test_optparse.py
--- a/lib-python/3.2/test/test_optparse.py
+++ b/lib-python/3.2/test/test_optparse.py
@@ -379,6 +379,8 @@
self.assertRaises(self.parser.remove_option, ('foo',), None,
ValueError, "no such option 'foo'")
+ @unittest.skipUnless(hasattr(sys, 'getrefcount'),
+ "requires sys.getrefcount")
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit