diff options
author | dluyer <53582923+dluyer@users.noreply.github.com> | 2019-08-06 17:02:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 17:02:22 -0700 |
commit | 93c1f1bc2d98b8fc0632ba7d10649e51a9f96434 (patch) | |
tree | 667d710cef069783d76f104f62510db74d4ea897 | |
parent | 07831aea4ddec52240d790af31153b96ab454f05 (diff) | |
download | pexpect-93c1f1bc2d98b8fc0632ba7d10649e51a9f96434.tar.gz |
Test for Python 2 ASCII encoding, too.
-rw-r--r-- | tests/test_which.py | 2 |
1 files changed, 1 insertions, 1 deletions
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-' |