A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2000-September/013622.html below:

[Python-checkins] CVS: python/dist/src/Lib/test test_StringIO.py,NONE,1.1

[Python-checkins] CVS: python/dist/src/Lib/test test_StringIO.py,NONE,1.1Martin v. Löwis python-dev@python.org
Tue, 19 Sep 2000 09:35:42 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv8108

Added Files:
	test_StringIO.py 
Log Message:
New test cases for the StringIO module


--- NEW FILE ---
# Tests StringIO and cStringIO

import string

def do_test(module):
    s = (string.letters+'\n')*5
    f = module.StringIO(s)
    print f.read(10)
    print f.readline()
    print len(f.readlines(60))

# Don't bother testing cStringIO without
import StringIO, cStringIO
do_test(StringIO)
do_test(cStringIO)



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