mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue