all repos — mgba @ f69b652e272492884472d8993015d189451138b4

mGBA Game Boy Advance Emulator

Python: Fix VFS test
Vicki Pfau vi@endrift.com
Sat, 14 Oct 2017 19:07:28 -0700
commit

f69b652e272492884472d8993015d189451138b4

parent

e820e4dcbb71bd3e7486e9a828a0226075103bc3

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/platform/python/tests/mgba/test_vfs.pysrc/platform/python/tests/mgba/test_vfs.py

@@ -19,7 +19,7 @@ def test_vfs_read():

vf = vfs.openPath(__file__) buffer = ffi.new('char[13]') assert vf.read(buffer, 13) == 13 - assert ffi.string(buffer) == 'import pytest' + assert ffi.string(buffer) == b'import pytest' vf.close() def test_vfs_readline():

@@ -28,9 +28,9 @@ buffer = ffi.new('char[16]')

linelen = vf.readline(buffer, 16) assert linelen in (14, 15) if linelen == 14: - assert ffi.string(buffer) == 'import pytest\n' + assert ffi.string(buffer) == b'import pytest\n' elif linelen == 15: - assert ffi.string(buffer) == 'import pytest\r\n' + assert ffi.string(buffer) == b'import pytest\r\n' vf.close() def test_vfs_readAllSize():