mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
This commit is contained in:
parent
2ec6bb4111
commit
ea94b3b149
57 changed files with 255 additions and 123 deletions
|
@ -4,6 +4,7 @@ import sys
|
|||
import re
|
||||
import test.support as support
|
||||
import unittest
|
||||
from test.support.import_helper import import_module
|
||||
|
||||
maxsize = support.MAX_Py_ssize_t
|
||||
|
||||
|
@ -478,7 +479,8 @@ class FormatTest(unittest.TestCase):
|
|||
|
||||
@support.cpython_only
|
||||
def test_precision_c_limits(self):
|
||||
from _testcapi import INT_MAX
|
||||
_testcapi = import_module("_testcapi")
|
||||
INT_MAX = _testcapi.INT_MAX
|
||||
|
||||
f = 1.2
|
||||
with self.assertRaises(ValueError) as cm:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue