summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_repr.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2001-12-29 00:25:42 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2001-12-29 00:25:42 (GMT)
commit707690132fc28773843eb154c8c8c1599c4fe5c8 (patch)
treef8a033d25c72fa86e4672ef33277d70c4ece480e /Lib/test/test_repr.py
parent26e5341c003066cae00c01e76384b47739cd6f7d (diff)
downloadcpython-707690132fc28773843eb154c8c8c1599c4fe5c8.zip
cpython-707690132fc28773843eb154c8c8c1599c4fe5c8.tar.gz
cpython-707690132fc28773843eb154c8c8c1599c4fe5c8.tar.bz2
SF Patch #494872 test repr() of a built-in module
Diffstat (limited to 'Lib/test/test_repr.py')
-rw-r--r--Lib/test/test_repr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
index a659002..89df890 100644
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -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