2.7's TextIO requires unicode

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2009-12-06 11:47:41 -06:00
parent 56c1391a16
commit ec96ab5286
1 changed files with 2 additions and 2 deletions

View File

@ -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]