# HG changeset patch # User RĂ©mi Cardona # Date 1442247164 -7200 # Node ID 30ebd6b2eaf37ee76a7c3a884a036acf337024b1 # Parent 444b1df7b4cb6f864c4d7d77d7a91257feb4bfb4 [devtools/testlib] port 'fake_form' test to io.BytesIO diff -r 444b1df7b4cb -r 30ebd6b2eaf3 devtools/test/unittest_testlib.py --- a/devtools/test/unittest_testlib.py Mon Sep 14 16:45:03 2015 +0200 +++ b/devtools/test/unittest_testlib.py Mon Sep 14 18:12:44 2015 +0200 @@ -18,6 +18,7 @@ """unittests for cw.devtools.testlib module""" from cStringIO import StringIO +from io import BytesIO from unittest import TextTestRunner @@ -33,7 +34,7 @@ class entity: cw_etype = 'Entity' eid = 0 - sio = StringIO('hop\n') + sio = BytesIO(b'hop\n') form = CubicWebTC.fake_form('import', {'file': ('filename.txt', sio), 'encoding': u'utf-8',