Issue #25548: Showing memory address of class objects in repl

This commit is contained in:
Kushal Das 2016-06-04 16:21:13 -07:00
parent 409482251b
commit 5801ecb440
20 changed files with 106 additions and 92 deletions

View file

@ -161,10 +161,10 @@ class IntegrationTests(TestCase):
self.assertTrue(out.endswith(
b"A server error occurred. Please contact the administrator."
))
self.assertEqual(
self.assertRegex(
err.splitlines()[-2],
"AssertionError: Headers (('Content-Type', 'text/plain')) must"
" be of type list: <class 'tuple'>"
r"AssertionError: Headers \(\('Content-Type', 'text/plain'\)\) must"
r" be of type list: <class 'tuple' at 0x.+>"
)
def test_status_validation_errors(self):
@ -704,3 +704,4 @@ class HandlerTests(TestCase):
if __name__ == "__main__":
unittest.main()