Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip certain unicode tests when maxunicode not > 0xffff #261

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/lib/test_appliance.py
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