mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #18702: All skipped tests now reported as skipped.
This commit is contained in:
parent
834856aca9
commit
7908068627
21 changed files with 908 additions and 883 deletions
|
@ -204,11 +204,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