From f3c93872193ced88960aa10e60ef767f95e5522b Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 30 Mar 2018 11:06:28 +0200 Subject: [PATCH] encoding: Fix assert to match test intention --- tests/internal/test_encoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/internal/test_encoding.py b/tests/internal/test_encoding.py index cc8987ce..98e982b8 100644 --- a/tests/internal/test_encoding.py +++ b/tests/internal/test_encoding.py @@ -40,6 +40,6 @@ class LocaleDecodeTest(unittest.TestCase): def test_does_not_use_locale_to_decode_ascii_bytestrings(self, mock): mock.return_value = 'UTF-8' - encoding.locale_decode('abc') + encoding.locale_decode(b'abc') self.assertFalse(mock.called)