Remove old Python 2 compatibility from ctypes test
This commit is contained in:
parent
0e40df6e54
commit
38e2f175ea
|
@ -326,11 +326,8 @@ class StructureTestCase(unittest.TestCase):
|
|||
|
||||
cls, msg = self.get_except(Person, b"Someone", (b"a", b"b", b"c"))
|
||||
self.assertEqual(cls, RuntimeError)
|
||||
if issubclass(Exception, object):
|
||||
self.assertEqual(msg,
|
||||
"(Phone) <class 'TypeError'>: too many initializers")
|
||||
else:
|
||||
self.assertEqual(msg, "(Phone) TypeError: too many initializers")
|
||||
self.assertEqual(msg,
|
||||
"(Phone) <class 'TypeError'>: too many initializers")
|
||||
|
||||
def test_huge_field_name(self):
|
||||
# issue12881: segfault with large structure field names
|
||||
|
|
Loading…
Reference in New Issue