summaryrefslogtreecommitdiff
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-07-13 21:13:29 -0700
committerBenjamin Peterson <benjamin@python.org>2016-07-13 21:13:29 -0700
commitdaf3dbb16a92e9d37441b1e5ea737a41be5bc07f (patch)
tree105fb3e03213485084f3ce27789787d0a7286d6b /Lib/ctypes
parent357ccb08e94acd09203d8cc27b297ad7b0b40391 (diff)
downloadcpython-daf3dbb16a92e9d37441b1e5ea737a41be5bc07f.tar.gz
Backed out changeset af29d89083b3 (closes #25548) (closes #27498)
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/test/test_structures.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/ctypes/test/test_structures.py b/Lib/ctypes/test/test_structures.py
index 94a86ea6dd..60bae8322b 100644
--- a/Lib/ctypes/test/test_structures.py
+++ b/Lib/ctypes/test/test_structures.py
@@ -320,14 +320,14 @@ class StructureTestCase(unittest.TestCase):
cls, msg = self.get_except(Person, b"Someone", (1, 2))
self.assertEqual(cls, RuntimeError)
- self.assertRegex(msg,
- r"\(Phone\) <class 'TypeError' at 0x.+>: "
- r"expected bytes, int found")
+ self.assertEqual(msg,
+ "(Phone) <class 'TypeError'>: "
+ "expected bytes, int found")
cls, msg = self.get_except(Person, b"Someone", (b"a", b"b", b"c"))
self.assertEqual(cls, RuntimeError)
- self.assertRegex(msg,
- r"\(Phone\) <class 'TypeError' at 0x.+>: 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