diff options
Diffstat (limited to 'tests/test_ctrl_chars.py')
-rwxr-xr-x | tests/test_ctrl_chars.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_ctrl_chars.py b/tests/test_ctrl_chars.py index 0719fc7..11fb55c 100755 --- a/tests/test_ctrl_chars.py +++ b/tests/test_ctrl_chars.py @@ -26,8 +26,9 @@ from . import PexpectTestCase import time import sys -from ptyprocess import ptyprocess -ptyprocess._make_eof_intr() +if sys.platform != 'win32': + from ptyprocess import ptyprocess + ptyprocess._make_eof_intr() if sys.version_info[0] >= 3: def byte(i): |