summaryrefslogtreecommitdiff
path: root/Lib/test/test_reprlib.py
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
commitab078e9ed1a5d1b693d6ee843f1a34e8993e9dee (patch)
tree55e6e21b81315f126e76357af7e545cfe498d778 /Lib/test/test_reprlib.py
parentfb4f8257bfa4471764e10c1d8525a5bb7b0145e5 (diff)
downloadcpython-git-ab078e9ed1a5d1b693d6ee843f1a34e8993e9dee.tar.gz
Backed out changeset af29d89083b3 (closes #25548) (closes #27498)
Diffstat (limited to 'Lib/test/test_reprlib.py')
-rw-r--r--Lib/test/test_reprlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_reprlib.py b/Lib/test/test_reprlib.py
index 2ecea0221e..4bf91945ea 100644
--- a/Lib/test/test_reprlib.py
+++ b/Lib/test/test_reprlib.py
@@ -292,8 +292,8 @@ class foo(object):
''')
importlib.invalidate_caches()
from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import foo
- self.assertRegex(repr(foo.foo),
- r"<class '%s.foo' at 0x.+>" % foo.__name__)
+ eq(repr(foo.foo),
+ "<class '%s.foo'>" % foo.__name__)
@unittest.skip('need a suitable object')
def test_object(self):
@@ -310,7 +310,7 @@ class bar:
importlib.invalidate_caches()
from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import bar
# Module name may be prefixed with "test.", depending on how run.
- self.assertRegex(repr(bar.bar), r"<class '%s.bar' at 0x.+>" % bar.__name__)
+ self.assertEqual(repr(bar.bar), "<class '%s.bar'>" % bar.__name__)
def test_instance(self):
self._check_path_limitations('baz')