]> granicus.if.org Git - python/commitdiff
SF Patch #494872 test repr() of a built-in module
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 29 Dec 2001 00:25:42 +0000 (00:25 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 29 Dec 2001 00:25:42 +0000 (00:25 +0000)
Lib/test/test_repr.py

index a659002e94ab6b10c7b6c9132ffd87d178f85b37..89df890fd105b4d423a3264ef64bb46445b993f7 100644 (file)
@@ -199,6 +199,7 @@ class LongReprTest(unittest.TestCase):
         from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import areallylongpackageandmodulenametotestreprtruncation
         eq(repr(areallylongpackageandmodulenametotestreprtruncation),
            "<module 'areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation' from '%s'>" % areallylongpackageandmodulenametotestreprtruncation.__file__)
+        eq(repr(sys), "<module 'sys' (built-in)>")
 
     def test_type(self):
         eq = self.assertEquals