mirror of https://github.com/python/cpython
limit prefix test for lambda
the compiler package generates a module-unique trailing suffix for each lambda
This commit is contained in:
parent
6a9cac68b6
commit
dd32138e7d
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue