mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #33173 -- Used locale.getlocale() instead of getdefaultlocale().
locale.getdefaultlocale() was deprecated in Python 3.11, see https://bugs.python.org/issue46659.
This commit is contained in:
parent
d9fc383a5e
commit
d4fd31684a
2 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue