diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-03 21:15:46 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-03 21:15:46 (GMT) |
commit | 32e23e739f858fcf47332e437d6c4d4f14b2b697 (patch) | |
tree | 80ed9b1174783a948655f5b47c26b70f135a894d /Lib/test/test_enumerate.py | |
parent | 68f518ce4a700854d3c9b0fef145b9af79883df9 (diff) | |
download | cpython-32e23e739f858fcf47332e437d6c4d4f14b2b697.zip cpython-32e23e739f858fcf47332e437d6c4d4f14b2b697.tar.gz cpython-32e23e739f858fcf47332e437d6c4d4f14b2b697.tar.bz2 |
Issue #18702: All skipped tests now reported as skipped.
Diffstat (limited to 'Lib/test/test_enumerate.py')
-rw-r--r-- | Lib/test/test_enumerate.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py index 6b9ff79..aac4da7 100644 --- a/Lib/test/test_enumerate.py +++ b/Lib/test/test_enumerate.py @@ -188,11 +188,10 @@ class TestReversed(unittest.TestCase): self.assertRaises(TypeError, reversed) self.assertRaises(TypeError, reversed, [], 'extra') + @unittest.skipUnless(hasattr(sys, 'getrefcount'), 'test needs sys.getrefcount()') def test_bug1229429(self): # this bug was never in reversed, it was in # PyObject_CallMethod, and reversed_new calls that sometimes. - if not hasattr(sys, "getrefcount"): - return def f(): pass r = f.__reversed__ = object() |