Skip to content

Commit d6cbff6

Browse files
perlpunkingydotnet
authored andcommitted
Skip certain unicode tests when maxunicode not > 0xffff
1 parent 69103ba commit d6cbff6

6 files changed

+4
-0
lines changed
File renamed without changes.
File renamed without changes.

tests/lib/test_appliance.py

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
DATA = 'tests/data'
55

6+
has_ucs4 = sys.maxunicode > 0xffff
7+
68
def find_test_functions(collections):
79
if not isinstance(collections, list):
810
collections = [collections]
@@ -25,6 +27,8 @@ def find_test_filenames(directory):
2527
base, ext = os.path.splitext(filename)
2628
if base.endswith('-py3'):
2729
continue
30+
if not has_ucs4 and base.find('-ucs4-') > -1:
31+
continue
2832
filenames.setdefault(base, []).append(ext)
2933
filenames = filenames.items()
3034
filenames.sort()

0 commit comments

Comments
 (0)