From f8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 28 Feb 2007 18:15:00 +0000 Subject: Add a test for instantiating SyntaxError with no arguments. --- Lib/test/test_exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index b99e247..d9a00b9 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', -- cgit v0.12