about summary refs log tree commit diff stats
path: root/test/os_dep/linux/stdlib.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2019-09-22 19:32:18 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2019-09-22 22:02:51 +0200
commit523507835ed6789a9489120023b539f6ae82eb18 (patch)
tree84a479a7ab6324f651d406226aef72afca89f7c9 /test/os_dep/linux/stdlib.py
parent1902c27e796277ab495afe3d39bf17d882eda062 (diff)
downloadmiasm-523507835ed6789a9489120023b539f6ae82eb18.tar.gz
miasm-523507835ed6789a9489120023b539f6ae82eb18.zip
Fix get_str_ansi: return str
get_str_ansi and get_str_unic now returns both *str* object:
As get_str_unic decodes the string, get_str_ansi should do the same.
Diffstat (limited to 'test/os_dep/linux/stdlib.py')
-rwxr-xr-xtest/os_dep/linux/stdlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/os_dep/linux/stdlib.py b/test/os_dep/linux/stdlib.py
index a205002b..ef890625 100755
--- a/test/os_dep/linux/stdlib.py
+++ b/test/os_dep/linux/stdlib.py
@@ -34,7 +34,7 @@ class TestLinuxStdlib(unittest.TestCase):
         jit.push_uint32_t(0) # ret_ad
         stdlib.xxx_sprintf(jit)
         ret = jit.get_str_ansi(buf)
-        self.assertEqual(ret, b"'coucou' 1111")
+        self.assertEqual(ret, "'coucou' 1111")
 
 
 if __name__ == '__main__':