summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-05-14 06:17:43 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-05-14 06:17:43 (GMT)
commit38e2f175ea7a352bc452f4e3ea6f5bcabd3dc5cf (patch)
treef47ea005e7eabe9eaafb4899f47f0449d258bd6a
parent0e40df6e54a8a7f44c690b01cd41de68dcac82c6 (diff)
downloadcpython-38e2f175ea7a352bc452f4e3ea6f5bcabd3dc5cf.zip
cpython-38e2f175ea7a352bc452f4e3ea6f5bcabd3dc5cf.tar.gz
cpython-38e2f175ea7a352bc452f4e3ea6f5bcabd3dc5cf.tar.bz2
Remove old Python 2 compatibility from ctypes test
-rw-r--r--Lib/ctypes/test/test_structures.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/ctypes/test/test_structures.py b/Lib/ctypes/test/test_structures.py
index 84d456c..e00bb04 100644
--- a/Lib/ctypes/test/test_structures.py
+++ b/Lib/ctypes/test/test_structures.py
@@ -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