Skip to content

Commit

Permalink
test-harness: make encoding check case-insensitive
Browse files Browse the repository at this point in the history
At some point the default changed from "UTF-8" to "utf-8".
  • Loading branch information
acdha authored and avivace committed Nov 18, 2021
1 parent 5e350ed commit 4c96561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-harness
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ BASE_DIR = os.path.dirname(__file__)
SYSTEM = platform.system().lower()

DEFAULT_ENCODING = sys.stdout.encoding
if DEFAULT_ENCODING != 'UTF-8':
print('Default encoding is %s: use with caution, UTF-8 is recommended', file=sys.stderr)
if DEFAULT_ENCODING.upper() != 'UTF-8':
print('Default encoding is %s: use with caution, UTF-8 is recommended' % DEFAULT_ENCODING, file=sys.stderr)


def run_version_suite(test_program_argv, version_dir):
Expand Down

0 comments on commit 4c96561

Please sign in to comment.