Skip to content

Commit

Permalink
Merge pull request #366 from do3cc/unicode_explicit_failure_50_cherry
Browse files Browse the repository at this point in the history
Fail explicitly if locales are missing.
  • Loading branch information
vangheem committed Feb 12, 2015
2 parents fe1b270 + efb0939 commit b01a89a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Products/CMFPlone/tests/testUnicodeSplitter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import unittest
from Products.CMFPlone.tests import PloneTestCase

from Products.CMFPlone.UnicodeSplitter import Splitter
from Products.CMFPlone.UnicodeSplitter import CaseNormalizer

Expand All @@ -21,10 +20,12 @@ def _setlocale(*names):
try:
locale.setlocale(locale.LC_ALL, name)
break
except locale.Error:
except locale.Error, e:
pass
else:
return None
raise e.__class__("Unsupported locale. These tests need at least one "
"of the following locales available on your system",
str(LATIN1))
return saved


Expand Down

1 comment on commit b01a89a

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS PASSED
Mr.Roboto url : http://jenkins.plone.org/roboto/get_info?push=b0f483bf78f648cd83df30a6dc0e5847
plone-5.0-python-2.7 [SUCCESS]

Please sign in to comment.