forked from openlp/openlp
Need a different approach for platform-specific tests
This commit is contained in:
parent
334cef478d
commit
cb62bf5936
@ -8,8 +8,6 @@ from mock import patch
|
|||||||
from openlp.core.utils import clean_filename, get_filesystem_encoding, _get_frozen_path, get_locale_key, \
|
from openlp.core.utils import clean_filename, get_filesystem_encoding, _get_frozen_path, get_locale_key, \
|
||||||
get_natural_key, split_filename
|
get_natural_key, split_filename
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
class TestUtils(TestCase):
|
class TestUtils(TestCase):
|
||||||
"""
|
"""
|
||||||
@ -122,8 +120,6 @@ class TestUtils(TestCase):
|
|||||||
# THEN: We get a properly sorted list
|
# THEN: We get a properly sorted list
|
||||||
test_passes = sorted(unsorted_list, key=get_locale_key) == ['Aushang', '\u00C4u\u00DFerung', 'Auszug']
|
test_passes = sorted(unsorted_list, key=get_locale_key) == ['Aushang', '\u00C4u\u00DFerung', 'Auszug']
|
||||||
assert test_passes, 'Strings should be sorted properly'
|
assert test_passes, 'Strings should be sorted properly'
|
||||||
if os.name != 'nt':
|
|
||||||
del get_locale_key_windows_test
|
|
||||||
|
|
||||||
def get_locale_key_linux_test(self):
|
def get_locale_key_linux_test(self):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user