summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_repr.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 23:01:49 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 23:01:49 (GMT)
commitdd32138e7dc66633b8804cd8e59ada5f9f5472c1 (patch)
tree424b2af23d9039be2025c5e01a920f59b311a8ac /Lib/test/test_repr.py
parent6a9cac68b65f1fa5a505b647dc149a53332f3d19 (diff)
downloadcpython-dd32138e7dc66633b8804cd8e59ada5f9f5472c1.zip
cpython-dd32138e7dc66633b8804cd8e59ada5f9f5472c1.tar.gz
cpython-dd32138e7dc66633b8804cd8e59ada5f9f5472c1.tar.bz2
limit prefix test for lambda
the compiler package generates a module-unique trailing suffix for each lambda
Diffstat (limited to 'Lib/test/test_repr.py')
-rw-r--r--Lib/test/test_repr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
index f635edb..cd9675a 100644
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -93,7 +93,7 @@ class ReprTests(unittest.TestCase):
def test_lambda(self):
self.failUnless(repr(lambda x: x).startswith(
- "<function <lambda> at 0x"))
+ "<function <lambda"))
# XXX anonymous functions? see func_repr
def test_builtin_function(self):