From 523507835ed6789a9489120023b539f6ae82eb18 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Sun, 22 Sep 2019 19:32:18 +0200 Subject: 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. --- test/os_dep/linux/stdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/os_dep/linux/stdlib.py') 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__': -- cgit 1.4.1