summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-02-28 18:15:00 +0000
committerBrett Cannon <bcannon@gmail.com>2007-02-28 18:15:00 +0000
commitf8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d (patch)
treee9da1e31390d3acde0077ad48d054837937443e8
parentadf172339cd8299d32cf8022f769d82603bb31e5 (diff)
downloadcpython-git-f8267df2ad1c88dc3f1ee3c2a3fb1cc61a6a9f3d.tar.gz
Add a test for instantiating SyntaxError with no arguments.
-rw-r--r--Lib/test/test_exceptions.py3
1 files changed, 3 insertions, 0 deletions
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',