[Python-checkins] r46199 - python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py

sean.reifschneider python-checkins at python.org
Wed May 24 21:20:14 CEST 2006


Author: sean.reifschneider
Date: Wed May 24 21:20:14 2006
New Revision: 46199

Modified:
   python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py
Log:
Adding a couple of other SyntaxError tests.


Modified: python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py
==============================================================================
--- python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py	(original)
+++ python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py	Wed May 24 21:20:14 2006
@@ -225,6 +225,18 @@
                 { 'message' : '', 'args' : (1, 'strErrorStr'),
                     'strerror' : 'strErrorStr', 'errno' : 1,
                     'filename' : 'filenameStr' }),
+        ( SyntaxError, ('msgStr',),
+                { 'message' : 'msgStr', 'args' : ('msgStr', ),
+                    'print_file_and_line' : None, 'msg' : 'msgStr',
+                    'filename' : None, 'lineno' : None, 'offset' : None,
+                    'text' : None }),
+        ( SyntaxError, ('msgStr', ('filenameStr', 'linenoStr', 'offsetStr',
+                        'textStr')),
+                { 'message' : '', 'args' : ('msgStr', ('filenameStr',
+                        'linenoStr', 'offsetStr', 'textStr' )),
+                    'print_file_and_line' : None, 'msg' : 'msgStr',
+                    'filename' : 'filenameStr', 'lineno' : 'linenoStr',
+                    'offset' : 'offsetStr', 'text' : 'textStr' }),
         ( SyntaxError, ('msgStr', 'filenameStr', 'linenoStr', 'offsetStr',
                     'textStr', 'print_file_and_lineStr'),
                 { 'message' : '', 'args' : ('msgStr', 'filenameStr',


More information about the Python-checkins mailing list