From 35c51c477bc3140e1b8c5cffd580f94434e50a90 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Sat, 13 Aug 2016 13:52:27 +0100 Subject: [PATCH] A more strict bytes/str test --- example/example-python-types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example-python-types.py b/example/example-python-types.py index 19df02ebd..1184f720a 100755 --- a/example/example-python-types.py +++ b/example/example-python-types.py @@ -68,8 +68,8 @@ print("__module__(example.ExamplePythonTypes.get_set) = %s" % ExamplePythonTypes print(instance.get_bytes_from_string().decode()) print(instance.get_bytes_from_str().decode()) -print(instance.get_str_from_string()) -print(instance.get_str_from_bytes()) +print(instance.get_str_from_string().encode().decode()) +print(instance.get_str_from_bytes().encode().decode()) from example import ConstructorStats