[Python-checkins] r54022 - python/trunk/Lib/test/test_exceptions.py
brett.cannon
python-checkins at python.org
Wed Feb 28 19:15:04 CET 2007
Author: brett.cannon
Date: Wed Feb 28 19:15:00 2007
New Revision: 54022
Modified:
python/trunk/Lib/test/test_exceptions.py
Log:
Add a test for instantiating SyntaxError with no arguments.
Modified: python/trunk/Lib/test/test_exceptions.py
==============================================================================
--- python/trunk/Lib/test/test_exceptions.py (original)
+++ python/trunk/Lib/test/test_exceptions.py Wed Feb 28 19:15:00 2007
@@ -225,6 +225,9 @@
(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',
More information about the Python-checkins
mailing list