]> granicus.if.org Git - python/commitdiff
Add a test for instantiating SyntaxError with no arguments.
authorBrett Cannon <bcannon@gmail.com>
Wed, 28 Feb 2007 18:15:00 +0000 (18:15 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 28 Feb 2007 18:15:00 +0000 (18:15 +0000)
Lib/test/test_exceptions.py

index b99e24783585f0454365208a8492e3e4d5783877..d9a00b9f77d665626471ffc937b4d0a04e66f61f 100644 (file)
@@ -225,6 +225,9 @@ class ExceptionTests(unittest.TestCase):
             (EnvironmentError, (1, 'strErrorStr', 'filenameStr'),
                 {'message' : '', 'args' : (1, 'strErrorStr'), 'errno' : 1,
                  'strerror' : 'strErrorStr', 'filename' : 'filenameStr'}),
+            (SyntaxError, (), {'message' : '', 'msg' : None, 'text' : None,
+                'filename' : None, 'lineno' : None, 'offset' : None,
+                'print_file_and_line' : None}),
             (SyntaxError, ('msgStr',),
                 {'message' : 'msgStr', 'args' : ('msgStr',), 'text' : None,
                  'print_file_and_line' : None, 'msg' : 'msgStr',