Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
albu-diku committed Jul 10, 2024
1 parent c9db727 commit 1b3b154
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_mig_shared_fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@

assert isinstance(DUMMY_BYTES, bytes)


def as_unicode_string(value):
assert isinstance(value, bytearray)
return unicode(codecs.decode(value, 'utf8')) if PY2 else str(value, 'utf8')


class TextFile:
def __init__(self, path, mode='r'):
self._file = None
Expand Down

0 comments on commit 1b3b154

Please sign in to comment.