* introduce py.io.TextIO and py.io.StringIO to help with 3k transition and to clarify
intentions when doing "in-memory" files. Replace most usages of StringIO. * consolidate py.io's files and tests into fewer files, make files 3k-importable --HG-- branch : trunk
This commit is contained in:
@@ -143,7 +143,7 @@ class TestConfigPickling:
|
||||
testdir.makepyfile(hello="def test_x(): pass")
|
||||
config = testdir.parseconfig(tmpdir)
|
||||
col = config.getfsnode(config.topdir)
|
||||
io = py.std.cStringIO.StringIO()
|
||||
io = py.io.TextIO()
|
||||
pickler = Pickler(io)
|
||||
pickler.dump(col)
|
||||
io.seek(0)
|
||||
@@ -160,7 +160,7 @@ class TestConfigPickling:
|
||||
col = config.getfsnode(config.topdir)
|
||||
col1 = col.join(dir1.basename)
|
||||
assert col1.parent is col
|
||||
io = py.std.cStringIO.StringIO()
|
||||
io = py.io.TextIO()
|
||||
pickler = Pickler(io)
|
||||
pickler.dump(col)
|
||||
pickler.dump(col1)
|
||||
|
||||
Reference in New Issue
Block a user