Fix breakage from removing exceptions module
This commit is contained in:
parent
68bbcd2a71
commit
fa04e1a090
|
@ -4,7 +4,7 @@ from _testcapi import test_structmembersType, \
|
||||||
INT_MAX, INT_MIN, UINT_MAX, \
|
INT_MAX, INT_MIN, UINT_MAX, \
|
||||||
LONG_MAX, LONG_MIN, ULONG_MAX
|
LONG_MAX, LONG_MIN, ULONG_MAX
|
||||||
|
|
||||||
import warnings, exceptions, unittest, test.test_warnings
|
import warnings, unittest, test.test_warnings
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
ts=test_structmembersType(1,2,3,4,5,6,7,8,9.99999,10.1010101010)
|
ts=test_structmembersType(1,2,3,4,5,6,7,8,9.99999,10.1010101010)
|
||||||
|
@ -42,7 +42,7 @@ class ReadWriteTests(unittest.TestCase):
|
||||||
class TestWarnings(test.test_warnings.TestModule):
|
class TestWarnings(test.test_warnings.TestModule):
|
||||||
def has_warned(self):
|
def has_warned(self):
|
||||||
self.assertEqual(test.test_warnings.msg.category,
|
self.assertEqual(test.test_warnings.msg.category,
|
||||||
exceptions.RuntimeWarning.__name__)
|
RuntimeWarning.__name__)
|
||||||
|
|
||||||
def test_byte_max(self):
|
def test_byte_max(self):
|
||||||
ts.T_BYTE=CHAR_MAX+1
|
ts.T_BYTE=CHAR_MAX+1
|
||||||
|
|
Loading…
Reference in New Issue