diff options
author | Georg Brandl <georg@python.org> | 2006-01-08 14:32:19 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-01-08 14:32:19 (GMT) |
commit | c4e2a9b70ac49cdd8bcc9ca60afac20162f84f24 (patch) | |
tree | 57bd9d6476ad47614f8df80e1dd0b7dabd46956e /Lib/test/outstanding_bugs.py | |
parent | 6d0c85a71c0d12fd45693ca37b66959a33e9b941 (diff) | |
download | cpython-c4e2a9b70ac49cdd8bcc9ca60afac20162f84f24.zip cpython-c4e2a9b70ac49cdd8bcc9ca60afac20162f84f24.tar.gz cpython-c4e2a9b70ac49cdd8bcc9ca60afac20162f84f24.tar.bz2 |
Add a test file (which isn't run by regrtest) for bugs which
aren't fixed yet.
Includes a first test (for compiler).
Diffstat (limited to 'Lib/test/outstanding_bugs.py')
-rw-r--r-- | Lib/test/outstanding_bugs.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Lib/test/outstanding_bugs.py b/Lib/test/outstanding_bugs.py new file mode 100644 index 0000000..be71fde4 --- /dev/null +++ b/Lib/test/outstanding_bugs.py @@ -0,0 +1,24 @@ +# +# This file is for everybody to add tests for bugs that aren't +# fixed yet. Please add a test case and appropriate bug description. +# +# When you fix one of the bugs, please move the test to the correct +# test_ module. +# + +import unittest +from test import test_support + +class TestBug1385040(unittest.TestCase): + def testSyntaxError(self): + import compiler + + # The following snippet gives a SyntaxError in the interpreter + # + # If you compile and exec it, the call foo(7) returns (7, 1) + self.assertRaises(SyntaxError, compiler.compile, + "def foo(a=1, b): return a, b\n\n", "<string>", "exec") + + +def test_main(): + test_support.run_unittest(TestBug1385040) |