[py-svn] py-trunk commit aee80e832ce5: 2.7's TextIO requires unicode

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun Dec 6 18:47:37 CET 2009


# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview/
# User Benjamin Peterson <benjamin at python.org>
# Date 1260121661 21600
# Node ID aee80e832ce5305051ccae42427252ec1189929d
# Parent f29d1d8a63849e6d6fcb70593c671ed07f69842b
2.7's TextIO requires unicode

--- a/testing/path/test_svnauth.py
+++ b/testing/path/test_svnauth.py
@@ -234,7 +234,7 @@ class TestSvnURLAuth(object):
 
     def test_log(self):
         u = svnurl_no_svn('http://foo.bar/svn/foo', auth=self.auth)
-        u.popen_output = py.io.TextIO('''\
+        u.popen_output = py.io.TextIO(py.builtin._totext('''\
 <?xml version="1.0"?><log><logentry revision="51381">
@@ -244,7 +244,7 @@ class TestSvnURLAuth(object):
 </msg></logentry></log>
-''')
+''', 'ascii'))
         u.check = lambda *args, **kwargs: True
         ret = u.log(10, 20, verbose=True)
         assert '--username="foo" --password="bar"' in u.commands[0]



More information about the pytest-commit mailing list