[Python-checkins] CVS: python/dist/src/Lib/test test_os.py,1.7,1.8
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 18 Oct 2001 14:19:34 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv20335
Modified Files:
test_os.py
Log Message:
The assignment to result.st_rdev can raise AttributeError as well as
TypeError (on systems where it's not defined at all, it raises
AttributeError; when it's defined, assignment to it raises TypeError).
Index: test_os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_os.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_os.py 2001/10/18 20:34:25 1.7
--- test_os.py 2001/10/18 21:19:31 1.8
***************
*** 112,116 ****
result.st_rdev = 1
self.fail("No exception thrown")
! except TypeError:
pass
--- 112,116 ----
result.st_rdev = 1
self.fail("No exception thrown")
! except (AttributeError, TypeError):
pass