Update outstanding bugs test file.

This commit is contained in:
Georg Brandl 2006-10-28 13:11:41 +00:00
parent c6fdec6d7e
commit 856b446793
1 changed files with 5 additions and 10 deletions

View File

@ -9,19 +9,14 @@
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")
#
# No test cases for outstanding bugs at the moment.
#
def test_main():
test_support.run_unittest(TestBug1385040)
#test_support.run_unittest()
pass
if __name__ == "__main__":
test_main()