SF Patch #494872 test repr() of a built-in module

This commit is contained in:
Neal Norwitz 2001-12-29 00:25:42 +00:00
parent 26e5341c00
commit 707690132f
1 changed files with 1 additions and 0 deletions

View File

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