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

richard.tew python-checkins at python.org
Sat May 27 13:37:40 CEST 2006


Author: richard.tew
Date: Sat May 27 13:37:40 2006
New Revision: 46448

Modified:
   python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py
Log:
Fix for WindowsError test arguments.

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	Sat May 27 13:37:40 2006
@@ -263,11 +263,11 @@
         ]
 try:
     exceptionList.append(
-            ( WindowsError, ('errnoStr', 'strErrorStr', 'filenameStr'),
-                    { 'message' : '', 'args' : ('errnoStr', 'strErrorStr'),
+            ( WindowsError, (1, 'strErrorStr', 'filenameStr'),
+                    { 'message' : '', 'args' : (1, 'strErrorStr'),
                         'strerror' : 'strErrorStr',
-                        'errno' : 'errnoStr', 'filename' : 'filenameStr',
-                        'winerror' : 'foo' }))
+                        'errno' : 22, 'filename' : 'filenameStr',
+                        'winerror' : 1 }))
 except NameError: pass
 
 for args in exceptionList:


More information about the Python-checkins mailing list