summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordluyer <53582923+dluyer@users.noreply.github.com>2019-08-06 17:02:22 -0700
committerGitHub <noreply@github.com>2019-08-06 17:02:22 -0700
commit93c1f1bc2d98b8fc0632ba7d10649e51a9f96434 (patch)
tree667d710cef069783d76f104f62510db74d4ea897 /tests
parent07831aea4ddec52240d790af31153b96ab454f05 (diff)
downloadpexpect-git-93c1f1bc2d98b8fc0632ba7d10649e51a9f96434.tar.gz
Test for Python 2 ASCII encoding, too.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_which.py2
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-'