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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4