diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-17 20:56:58 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-17 20:56:58 (GMT) |
commit | e6dd2cb63d6458b02eb31a4ca0a644aac2febc21 (patch) | |
tree | 994decb299233792e33776d80d6fd3ffe93826ac /Lib/test | |
parent | 8fbddf15ea8ae342eee643cb5354d18cddc86dea (diff) | |
download | cpython-e6dd2cb63d6458b02eb31a4ca0a644aac2febc21.zip cpython-e6dd2cb63d6458b02eb31a4ca0a644aac2febc21.tar.gz cpython-e6dd2cb63d6458b02eb31a4ca0a644aac2febc21.tar.bz2 |
Merged revisions 79034 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79034 | benjamin.peterson | 2010-03-17 15:41:42 -0500 (Wed, 17 Mar 2010) | 1 line
prevent lambda functions from having docstrings #8164
........
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_compile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 1de9027..90d6b87 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -292,9 +292,9 @@ if 1: f1, f2 = f() self.assertNotEqual(id(f1.__code__), id(f2.__code__)) -## def test_unicode_encoding(self): -## code = "# -*- coding: utf-8 -*-\npass\n" -## self.assertRaises(SyntaxError, compile, code, "tmp", "exec") + def test_lambda_doc(self): + l = lambda: "foo" + self.assertIsNone(l.__doc__) def test_subscripts(self): # SF bug 1448804 |