Commit 9e6bf1a8 authored by Martin v. Löwis's avatar Martin v. Löwis

Widen test to support unicode.

parent e8e4e145
......@@ -1265,7 +1265,7 @@ class PseudoFile(object):
self.encoding = encoding
def write(self, s):
if not isinstance(s, str):
if not isinstance(s, basestring):
raise TypeError('must be str, not ' + type(s).__name__)
self.shell.write(s, self.tags)
......
......@@ -263,7 +263,7 @@ class _RPCFile(io.TextIOBase):
return setattr(self.rpc, name, value)
def write(self, s):
if not isinstance(s, str):
if not isinstance(s, basestring):
raise TypeError('must be str, not ' + type(s).__name__)
return self.rpc.write(s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment