mirror of https://github.com/python/cpython
SF Patch #494872 test repr() of a built-in module
This commit is contained in:
parent
26e5341c00
commit
707690132f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue