Skip to content

Commit

Permalink
Emit a skip test warning if de_DE.ISO8859-1 is not on available locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Nov 6, 2017
1 parent 7e6d1cf commit 80895f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/index/text/tests/test_lexicon.py
Expand Up @@ -244,7 +244,7 @@ def test_process_w_locale_awareness(self):
locale_string = 'de_DE.ISO8859-1' if sys.platform != 'win32' else 'German_Germany.1252'
locale.setlocale(locale.LC_ALL, locale_string)
except locale.Error: # pragma: no cover
return # This test doesn't work here :-(
self.skipTest("d._DE.ISO8859-1 locale is not available")
self.addCleanup(locale.setlocale, locale.LC_ALL, old_locale)

expected = ['m\xfclltonne', 'waschb\xe4r',
Expand Down

0 comments on commit 80895f2

Please sign in to comment.