Fix test suite error

This commit is contained in:
James R. Barlow
2019-10-24 18:17:03 -07:00
parent a58209e895
commit 80651fe12c
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -63,9 +63,7 @@ def check_options_languages(options):
options.language = [DEFAULT_LANGUAGE]
system_lang = locale.getlocale()[0]
if system_lang and not system_lang.startswith('en'):
log.debug(
"No language specified; assuming --language %s" % DEFAULT_LANGUAGE
)
log.debug("No language specified; assuming --language %s", DEFAULT_LANGUAGE)
# Support v2.x "eng+deu" language syntax
if '+' in options.language[0]:
+1
View File
@@ -153,6 +153,7 @@ def test_language_warning(caplog):
assert opts.language == ['eng']
assert '' in caplog.text
opts = make_opts(language=None)
with patch(
'ocrmypdf._validation.locale.getlocale', return_value=('fr_FR', 'UTF-8')
):