diff options
| author | Tim Graham <timograham@gmail.com> | 2017-02-07 12:05:47 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-09 09:03:47 -0500 |
| commit | 500532c95db40b0b24654be7bb0d76b66b022bd5 (patch) | |
| tree | 761766d7138652703e566ac9c96960a265f036ff /tests/utils_tests/test_encoding.py | |
| parent | 21f13ff5b3d5a42d62f38398c010efcdce30dad7 (diff) | |
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
Diffstat (limited to 'tests/utils_tests/test_encoding.py')
| -rw-r--r-- | tests/utils_tests/test_encoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests/test_encoding.py b/tests/utils_tests/test_encoding.py index c1e3323f15..e3da394e77 100644 --- a/tests/utils_tests/test_encoding.py +++ b/tests/utils_tests/test_encoding.py @@ -42,7 +42,7 @@ class TestEncodingUtils(SimpleTestCase): """ error_msg = "This is an exception, voilĂ " exc = ValueError(error_msg) - self.assertEqual(force_bytes(exc), error_msg.encode('utf-8')) + self.assertEqual(force_bytes(exc), error_msg.encode()) self.assertEqual(force_bytes(exc, encoding='ascii', errors='ignore'), b'This is an exception, voil') def test_force_bytes_strings_only(self): |
