[Python-checkins] CVS: python/dist/src/Lib/test test_StringIO.py,1.2,1.3
Jim Fulton
python-dev@python.org
Fri, 6 Oct 2000 12:21:36 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21804
Modified Files:
test_StringIO.py
Log Message:
Uncommented tests that failed for cStringIO,
Added missing clode to make the clode test test a close. ;)
Index: test_StringIO.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_StringIO.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_StringIO.py 2000/09/28 04:25:33 1.2
--- test_StringIO.py 2000/10/06 19:21:32 1.3
***************
*** 15,35 ****
f.truncate()
print `f.getvalue()`
! # This test fails for cStringIO; reported as SourceForge bug #115531;
! # please uncomment this test when that bug is fixed.
! # http://sourceforge.net/bugs/?func=detailbug&bug_id=115531&group_id=5470
! ## f.seek(0)
! ## f.truncate(5)
! ## print `f.getvalue()`
!
! # This test fails for cStringIO; reported as SourceForge bug #115530;
! # please uncomment this test when that bug is fixed.
! # http://sourceforge.net/bugs/?func=detailbug&bug_id=115530&group_id=5470
! ## try:
! ## f.write("frobnitz")
! ## except ValueError, e:
! ## print "Caught expected ValueError writing to closed StringIO:"
! ## print e
! ## else:
! ## print "Failed to catch ValueError writing to closed StringIO."
# Don't bother testing cStringIO without
--- 15,29 ----
f.truncate()
print `f.getvalue()`
! f.seek(0)
! f.truncate(5)
! print `f.getvalue()`
! f.close()
! try:
! f.write("frobnitz")
! except ValueError, e:
! print "Caught expected ValueError writing to closed StringIO:"
! print e
! else:
! print "Failed to catch ValueError writing to closed StringIO."
# Don't bother testing cStringIO without