We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1172f4c commit cc8b9d6Copy full SHA for cc8b9d6
Lib/test/test_gettext.py
@@ -981,6 +981,13 @@ def test__all__(self):
981
not_exported={'c2py', 'ENOENT'})
982
983
984
+class TranslationFallbackTestCase(unittest.TestCase):
985
+ def test_translation_fallback(self):
986
+ with os_helper.temp_cwd() as tempdir:
987
+ t = gettext.translation('gettext', localedir=tempdir, fallback=True)
988
+ self.assertIsInstance(t, gettext.NullTranslations)
989
+
990
991
if __name__ == '__main__':
992
unittest.main()
993
0 commit comments