Enable testing on MacOS

Attempt to reproduce local failure of 4 tests which reproduces with
multiple python versions, likely OSX specific.
This commit is contained in:
Sorin Sbarnea
2020-08-20 09:31:52 +01:00
parent 8da98f2122
commit 9856706880
3 changed files with 22 additions and 7 deletions

View File

@@ -116,9 +116,9 @@ class KeyOrderingTestCase(RuleTestCase):
def test_locale_case(self):
self.addCleanup(locale.setlocale, locale.LC_ALL, (None, None))
try:
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
locale.setlocale(locale.LC_ALL, 'C.UTF-8')
except locale.Error:
self.skipTest('locale en_US.UTF-8 not available')
self.skipTest('locale C.UTF-8 not available')
conf = ('key-ordering: enable')
self.check('---\n'
't-shirt: 1\n'
@@ -135,9 +135,9 @@ class KeyOrderingTestCase(RuleTestCase):
def test_locale_accents(self):
self.addCleanup(locale.setlocale, locale.LC_ALL, (None, None))
try:
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
locale.setlocale(locale.LC_ALL, 'C.UTF-8')
except locale.Error:
self.skipTest('locale en_US.UTF-8 not available')
self.skipTest('locale C.UTF-8 not available')
conf = ('key-ordering: enable')
self.check('---\n'
'hair: true\n'