Skip to content

Commit 765e16c

Browse files
authored
Reverting last commit to use run_with_locale only
`run_with_locales` is a decorator-only but would run all specified locales, skipping those that cannot be found. Instead, we use `run_with_locale` which is a context manager *and* a decorator to speed-up tests.
1 parent c665a2d commit 765e16c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_ctypes/test_dlerror.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class TestLocalization(unittest.TestCase):
123123

124124
@staticmethod
125125
def configure_locales(func):
126-
return test.support.run_with_locales(
126+
return test.support.run_with_locale(
127127
'LC_ALL',
128128
'fr_FR.iso88591', 'ja_JP.sjis', 'zh_CN.gbk',
129129
'fr_FR.utf8', 'en_US.utf8',

Lib/test/test_dbm_gnu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_clear(self):
206206
self.assertNotIn(k, db)
207207
self.assertEqual(len(db), 0)
208208

209-
@support.run_with_locales(
209+
@support.run_with_locale(
210210
'LC_ALL',
211211
'fr_FR.iso88591', 'ja_JP.sjis', 'zh_CN.gbk',
212212
'fr_FR.utf8', 'en_US.utf8',

0 commit comments

Comments
 (0)