mirror of
https://github.com/python/cpython.git
synced 2026-01-03 14:02:21 +00:00
Remove old Python 2 compatibility from ctypes test
This commit is contained in:
parent
0e40df6e54
commit
38e2f175ea
1 changed files with 2 additions and 5 deletions
|
|
@ -326,11 +326,8 @@ class Person(Structure):
|
|||
|
||||
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…
Add table
Add a link
Reference in a new issue