mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +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
|
@ -11,6 +11,7 @@ import operator
|
|||
import io
|
||||
import math
|
||||
import struct
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
import array
|
||||
|
@ -993,15 +994,15 @@ class BaseTest:
|
|||
s = None
|
||||
self.assertRaises(ReferenceError, len, p)
|
||||
|
||||
@unittest.skipUnless(hasattr(sys, 'getrefcount'),
|
||||
'test needs sys.getrefcount()')
|
||||
def test_bug_782369(self):
|
||||
import sys
|
||||
if hasattr(sys, "getrefcount"):
|
||||
for i in range(10):
|
||||
b = array.array('B', range(64))
|
||||
rc = sys.getrefcount(10)
|
||||
for i in range(10):
|
||||
b = array.array('B', range(64))
|
||||
self.assertEqual(rc, sys.getrefcount(10))
|
||||
for i in range(10):
|
||||
b = array.array('B', range(64))
|
||||
rc = sys.getrefcount(10)
|
||||
for i in range(10):
|
||||
b = array.array('B', range(64))
|
||||
self.assertEqual(rc, sys.getrefcount(10))
|
||||
|
||||
def test_subclass_with_kwargs(self):
|
||||
# SF bug #1486663 -- this used to erroneously raise a TypeError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue