summaryrefslogtreecommitdiff
path: root/sys/lib/python/test/outstanding_bugs.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
commit458120dd40db6b4df55a4e96b650e16798ef06a0 (patch)
tree8f82685be24fef97e715c6f5ca4c68d34d5074ee /sys/lib/python/test/outstanding_bugs.py
parent3a742c699f6806c1145aea5149bf15de15a0afd7 (diff)
add hg and python
Diffstat (limited to 'sys/lib/python/test/outstanding_bugs.py')
-rw-r--r--sys/lib/python/test/outstanding_bugs.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/lib/python/test/outstanding_bugs.py b/sys/lib/python/test/outstanding_bugs.py
new file mode 100644
index 000000000..7e37c8502
--- /dev/null
+++ b/sys/lib/python/test/outstanding_bugs.py
@@ -0,0 +1,27 @@
+#
+# 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)
+
+if __name__ == "__main__":
+ test_main()