[Python-checkins] r46195 - python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py
sean.reifschneider
python-checkins at python.org
Wed May 24 20:38:23 CEST 2006
Author: sean.reifschneider
Date: Wed May 24 20:38:23 2006
New Revision: 46195
Modified:
python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py
Log:
Adding errno testing as string and int.
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 20:38:23 2006
@@ -221,6 +221,10 @@
{ 'message' : '', 'args' : ('errnoStr', 'strErrorStr'),
'strerror' : 'strErrorStr',
'errno' : 'errnoStr', 'filename' : 'filenameStr' }),
+ ( EnvironmentError, (1, 'strErrorStr', 'filenameStr'),
+ { 'message' : '', 'args' : (1, 'strErrorStr'),
+ 'strerror' : 'strErrorStr', 'errno' : 1,
+ 'filename' : 'filenameStr' }),
( SyntaxError, ('msgStr', 'filenameStr', 'linenoStr', 'offsetStr',
'textStr', 'print_file_and_lineStr'),
{ 'message' : '', 'args' : ('msgStr', 'filenameStr',
More information about the Python-checkins
mailing list