diff --git a/tests/test_utils.py b/tests/test_utils.py index 28c836e999..a892418d2e 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -124,7 +124,7 @@ def test_saturate(): def test_to_utf8(s, exp): """Test the to_utf8 function: object to string""" u = utils.to_utf8(s) - assert type(u) == str + assert isinstance(u, str) assert u == exp