|
@@ -106,7 +106,7 @@ class TestEncodingUtils(SimpleTestCase):
|
|
|
self.assertEqual(smart_str("foo"), "foo")
|
|
|
|
|
|
def test_get_default_encoding(self):
|
|
|
- with mock.patch("locale.getdefaultlocale", side_effect=Exception):
|
|
|
+ with mock.patch("locale.getlocale", side_effect=Exception):
|
|
|
self.assertEqual(get_system_encoding(), "ascii")
|
|
|
|
|
|
def test_repercent_broken_unicode_recursion_error(self):
|