From: Finn B. <bc...@us...> - 2001-10-27 21:45:42
|
Update of /cvsroot/jython/bugtests In directory usw-pr-cvs1:/tmp/cvs-serv10177 Added Files: test326.py Log Message: Test for [ #473676 ] cStringIO bug. --- NEW FILE: test326.py --- """ [ #473676 ] cStringIO bug """ import support import cStringIO s = cStringIO.StringIO() r = s.read(1) if len(r) != 0: raise support.TestError('EOF must be the empty string') s = cStringIO.StringIO("abc") r = s.read(2) assert len(r) == 2 r = s.read(1) assert len(r) == 1 r = s.read(1) if len(r) != 0: raise support.TestError('EOF must be the empty string #2') |