diff options
author | Kushal Das <kushaldas@gmail.com> | 2016-06-04 16:21:13 -0700 |
---|---|---|
committer | Kushal Das <kushaldas@gmail.com> | 2016-06-04 16:21:13 -0700 |
commit | b2bfc00b0792a26f499225fc5dd60b9b7e9287f3 (patch) | |
tree | d66d26d80beb9c124aa0814bb35524c941ff9b08 /Lib/ctypes/test | |
parent | ec09e0e9556e3775e8096ae1a9ec7dc03c8a7bf5 (diff) | |
download | cpython-b2bfc00b0792a26f499225fc5dd60b9b7e9287f3.tar.gz |
Issue #25548: Showing memory address of class objects in repl
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r-- | Lib/ctypes/test/test_structures.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/ctypes/test/test_structures.py b/Lib/ctypes/test/test_structures.py index e00bb046b4..736679f630 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.assertEqual(msg, - "(Phone) <class 'TypeError'>: " - "expected bytes, int found") + self.assertRegex(msg, + r"\(Phone\) <class 'TypeError' at 0x.+>: " + r"expected bytes, int found") cls, msg = self.get_except(Person, b"Someone", (b"a", b"b", b"c")) self.assertEqual(cls, RuntimeError) - self.assertEqual(msg, - "(Phone) <class 'TypeError'>: too many initializers") + self.assertRegex(msg, + r"\(Phone\) <class 'TypeError' at 0x.+>: too many initializers") def test_huge_field_name(self): # issue12881: segfault with large structure field names |