mirror of https://github.com/python/cpython
Add a test for instantiating SyntaxError with no arguments.
This commit is contained in:
parent
adf172339c
commit
f8267df2ad
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue