From: Brett Cannon Date: Wed, 28 Feb 2007 18:15:00 +0000 (+0000) Subject: Add a test for instantiating SyntaxError with no arguments. X-Git-Tag: v2.6a1~2126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d;p=python Add a test for instantiating SyntaxError with no arguments. --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index b99e247835..d9a00b9f77 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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',