From 93c1f1bc2d98b8fc0632ba7d10649e51a9f96434 Mon Sep 17 00:00:00 2001 From: dluyer <53582923+dluyer@users.noreply.github.com> Date: Tue, 6 Aug 2019 17:02:22 -0700 Subject: Test for Python 2 ASCII encoding, too. --- tests/test_which.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_which.py b/tests/test_which.py index 631db5a..e1b19a8 100644 --- a/tests/test_which.py +++ b/tests/test_which.py @@ -42,7 +42,7 @@ class TestCaseWhich(PexpectTestCase.PexpectTestCase): " which() finds an executable in $PATH and returns its abspath. " bin_dir = tempfile.mkdtemp() - if sys.getfilesystemencoding() == 'ascii': + if sys.getfilesystemencoding() in ('ascii', 'ANSI_X3.4-1968'): prefix = 'ascii-' else: prefix = u'ǝpoɔıun-' -- cgit v1.2.1