mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #18702: All skipped tests now reported as skipped.
This commit is contained in:
parent
7a07cc90c7
commit
43767638a9
21 changed files with 967 additions and 925 deletions
|
@ -202,11 +202,10 @@ class TestReversed(unittest.TestCase, PickleTest):
|
|||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue