diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-02-28 18:15:00 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-02-28 18:15:00 (GMT) |
commit | f8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d (patch) | |
tree | e9da1e31390d3acde0077ad48d054837937443e8 /Lib/test/test_exceptions.py | |
parent | adf172339cd8299d32cf8022f769d82603bb31e5 (diff) | |
download | cpython-f8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d.zip cpython-f8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d.tar.gz cpython-f8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d.tar.bz2 |
Add a test for instantiating SyntaxError with no arguments.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 3 |
1 files changed, 3 insertions, 0 deletions
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', |