Skip to content

Commit 52e3ac4

Browse files
Drop getdefaultlocale deprecated in Python 3.11
1 parent d8aee10 commit 52e3ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def test_localisation(self):
130130
os.environ['LANG'] = name
131131
os.environ['LANGUAGE'] = name
132132
locale.setlocale(locale.LC_ALL, '')
133-
name, encoding = locale.getdefaultlocale()
133+
name, encoding = locale.getlocale()
134134
if name != 'de_DE' and sys.platform != 'win32':
135135
self.skipTest("locale environment ignored")
136136
# test localisation

0 commit comments

Comments
 (0)