Skip to content

Commit

Permalink
Skip certain unicode tests when maxunicode not > 0xffff
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk authored and ingydotnet committed Mar 12, 2019
1 parent 69103ba commit d6cbff6
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/lib/test_appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

DATA = 'tests/data'

has_ucs4 = sys.maxunicode > 0xffff

def find_test_functions(collections):
if not isinstance(collections, list):
collections = [collections]
Expand All @@ -25,6 +27,8 @@ def find_test_filenames(directory):
base, ext = os.path.splitext(filename)
if base.endswith('-py3'):
continue
if not has_ucs4 and base.find('-ucs4-') > -1:
continue
filenames.setdefault(base, []).append(ext)
filenames = filenames.items()
filenames.sort()
Expand Down

0 comments on commit d6cbff6

Please sign in to comment.