diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-01 06:19:04 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-01 06:19:04 (GMT) |
commit | 1a572964507512f3becd0c934525bd3caf9cc1ac (patch) | |
tree | 0b4bef8f24d934a12f419ff08e41ca98b16f860f /Lib/test/outstanding_bugs.py | |
parent | 6b4ed747915ed3f6baab4d93b0f28e60b2911d02 (diff) | |
download | cpython-1a572964507512f3becd0c934525bd3caf9cc1ac.zip cpython-1a572964507512f3becd0c934525bd3caf9cc1ac.tar.gz cpython-1a572964507512f3becd0c934525bd3caf9cc1ac.tar.bz2 |
Set svn:eol-style to native.
Diffstat (limited to 'Lib/test/outstanding_bugs.py')
-rw-r--r-- | Lib/test/outstanding_bugs.py | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/Lib/test/outstanding_bugs.py b/Lib/test/outstanding_bugs.py index adcf7c0..7e37c85 100644 --- a/Lib/test/outstanding_bugs.py +++ b/Lib/test/outstanding_bugs.py @@ -1,27 +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()
+# +# 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() |