]> granicus.if.org Git - python/commitdiff
Issue #3080: Fix test_reprlib on Windows
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 23 Feb 2011 14:14:48 +0000 (14:14 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 23 Feb 2011 14:14:48 +0000 (14:14 +0000)
Fix the test for last module changes (r88520).

Lib/test/test_reprlib.py

index b0dc4d781348d0712f254271aa79961231c35764..e476941d356c7b6417d5bc5021d674b1ab5c0418 100644 (file)
@@ -234,7 +234,7 @@ class LongReprTest(unittest.TestCase):
         touch(os.path.join(self.subpkgname, self.pkgname + '.py'))
         from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import areallylongpackageandmodulenametotestreprtruncation
         eq(repr(areallylongpackageandmodulenametotestreprtruncation),
-           "<module '%s' from '%s'>" % (areallylongpackageandmodulenametotestreprtruncation.__name__, areallylongpackageandmodulenametotestreprtruncation.__file__))
+           "<module %r from %r>" % (areallylongpackageandmodulenametotestreprtruncation.__name__, areallylongpackageandmodulenametotestreprtruncation.__file__))
         eq(repr(sys), "<module 'sys' (built-in)>")
 
     def test_type(self):