mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue 19572: More silently skipped tests explicitly skipped.
This commit is contained in:
commit
101d9e7250
35 changed files with 135 additions and 142 deletions
|
@ -676,10 +676,10 @@ class BaseTest:
|
|||
self.checkraises(TypeError, 'hello', 'replace', 42, 'h')
|
||||
self.checkraises(TypeError, 'hello', 'replace', 'h', 42)
|
||||
|
||||
@unittest.skipIf(sys.maxsize > (1 << 32) or struct.calcsize('P') != 4,
|
||||
'only applies to 32-bit platforms')
|
||||
def test_replace_overflow(self):
|
||||
# Check for overflow checking on 32 bit machines
|
||||
if sys.maxsize != 2147483647 or struct.calcsize("P") > 4:
|
||||
return
|
||||
A2_16 = "A" * (2**16)
|
||||
self.checkraises(OverflowError, A2_16, "replace", "", A2_16)
|
||||
self.checkraises(OverflowError, A2_16, "replace", "A", A2_16)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue