mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
Add a test for instantiating SyntaxError with no arguments.
This commit is contained in:
parent
adf172339c
commit
f8267df2ad
1 changed files with 3 additions and 0 deletions
|
@ -225,6 +225,9 @@ class ExceptionTests(unittest.TestCase):
|
||||||
(EnvironmentError, (1, 'strErrorStr', 'filenameStr'),
|
(EnvironmentError, (1, 'strErrorStr', 'filenameStr'),
|
||||||
{'message' : '', 'args' : (1, 'strErrorStr'), 'errno' : 1,
|
{'message' : '', 'args' : (1, 'strErrorStr'), 'errno' : 1,
|
||||||
'strerror' : 'strErrorStr', 'filename' : 'filenameStr'}),
|
'strerror' : 'strErrorStr', 'filename' : 'filenameStr'}),
|
||||||
|
(SyntaxError, (), {'message' : '', 'msg' : None, 'text' : None,
|
||||||
|
'filename' : None, 'lineno' : None, 'offset' : None,
|
||||||
|
'print_file_and_line' : None}),
|
||||||
(SyntaxError, ('msgStr',),
|
(SyntaxError, ('msgStr',),
|
||||||
{'message' : 'msgStr', 'args' : ('msgStr',), 'text' : None,
|
{'message' : 'msgStr', 'args' : ('msgStr',), 'text' : None,
|
||||||
'print_file_and_line' : None, 'msg' : 'msgStr',
|
'print_file_and_line' : None, 'msg' : 'msgStr',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue