diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 12:14:52 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 12:14:52 +0300 |
| commit | 0c937b3ed6d2eeca84fa4aca1a9aef685db65abc (patch) | |
| tree | f5691e459361ce03018098bbad26f9472e8340e5 /Lib/test/test_reprlib.py | |
| parent | fbc877b7940beaa23fea020b8a137a660eff419e (diff) | |
| download | cpython-git-0c937b3ed6d2eeca84fa4aca1a9aef685db65abc.tar.gz | |
Issue #22031: Reprs now always use hexadecimal format with the "0x" prefix
when contain an id in form " at 0x...".
Diffstat (limited to 'Lib/test/test_reprlib.py')
| -rw-r--r-- | Lib/test/test_reprlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_reprlib.py b/Lib/test/test_reprlib.py index ae67f06bc4..d65494a856 100644 --- a/Lib/test/test_reprlib.py +++ b/Lib/test/test_reprlib.py @@ -123,7 +123,7 @@ class ReprTests(unittest.TestCase): eq(r(i2), expected) i3 = ClassWithFailingRepr() - eq(r(i3), ("<ClassWithFailingRepr instance at %x>"%id(i3))) + eq(r(i3), ("<ClassWithFailingRepr instance at %#x>"%id(i3))) s = r(ClassWithFailingRepr) self.assertTrue(s.startswith("<class ")) |
