[Python-checkins] r41940 - python/trunk/Lib/test/test_compiler.py
Neal Norwitz
nnorwitz at gmail.com
Sat Jan 7 06:19:46 CET 2006
This change broke the build. See:
http://www.python.org/dev/buildbot/
On 1/6/06, reinhold.birkenfeld <python-checkins at python.org> wrote:
> Author: reinhold.birkenfeld
> Date: Fri Jan 6 20:28:15 2006
> New Revision: 41940
>
> Modified:
> python/trunk/Lib/test/test_compiler.py
> Log:
> Add compiler test regarding optional arguments.
>
>
>
> Modified: python/trunk/Lib/test/test_compiler.py
> ==============================================================================
> --- python/trunk/Lib/test/test_compiler.py (original)
> +++ python/trunk/Lib/test/test_compiler.py Fri Jan 6 20:28:15 2006
> @@ -12,7 +12,6 @@
> # standard library and its test suite. This doesn't verify
> # that any of the code is correct, merely the compiler is able
> # to generate some kind of code for it.
> -
> libdir = os.path.dirname(unittest.__file__)
> testdir = os.path.dirname(test.test_support.__file__)
>
> @@ -36,6 +35,10 @@
>
> def testNewClassSyntax(self):
> compiler.compile("class foo():pass\n\n","<string>","exec")
> +
> + def testSyntaxErrors(self):
> + self.assertRaises(SyntaxError, compiler.compile,
> + "def foo(a=1,b):pass\n\n", "<string>", "exec")
>
> def testLineNo(self):
> # Test that all nodes except Module have a correct lineno attribute.
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
More information about the Python-checkins
mailing list