summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
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
commita0442dbcff69d9dfea71f003dac65350f5639619 (patch)
tree0c038326db9294579663740d575fa03cfe719b8c /Lib/test/test_exceptions.py
parentc620ff34384cf15e6a236db6c306bcff6c53649f (diff)
downloadcpython-a0442dbcff69d9dfea71f003dac65350f5639619.tar.gz
Add a test for instantiating SyntaxError with no arguments.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-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',