https://github.com/python/cpython/commit/cc8b9d6939fec729309ef6f0b00075af7417be12 commit: cc8b9d6939fec729309ef6f0b00075af7417be12 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: tomasr8 <tomas.ro...@gmail.com> date: 2025-07-20T12:30:09Z summary:
[3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863) gh-130655: gettext: Add fallback testcase (GH-136857) (cherry picked from commit c6e6fe92cd8b90d546652764e3eaf1631da16f8f) Co-authored-by: Dominic H <d...@dominic.sk> files: M Lib/test/test_gettext.py diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index 17299153295903..681de239d8cc28 100644 --- a/Lib/test/test_gettext.py +++ b/Lib/test/test_gettext.py @@ -981,6 +981,13 @@ def test__all__(self): not_exported={'c2py', 'ENOENT'}) +class TranslationFallbackTestCase(unittest.TestCase): + def test_translation_fallback(self): + with os_helper.temp_cwd() as tempdir: + t = gettext.translation('gettext', localedir=tempdir, fallback=True) + self.assertIsInstance(t, gettext.NullTranslations) + + if __name__ == '__main__': unittest.main() _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com