Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support mintty (MSYS/Cygwin terminals) #226

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update colorama/tests/isatty_test.py
  • Loading branch information
SSE4 authored Oct 26, 2021
commit 2e583c88905925a96970810d6594b4702678e06e
5 changes: 4 additions & 1 deletion colorama/tests/isatty_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from io import StringIO
from unittest import TestCase, main, skipUnless

from mock import patch, PropertyMock
try:
from mock import patch, PropertyMock
except ImportError:
from unittest.mock import patch, PropertyMock

from ..ansitowin32 import StreamWrapper, AnsiToWin32, is_msys_cygwin_tty, FileNameInfo
from .utils import pycharm, replace_by, replace_original_by, StreamTTY, StreamNonTTY, StreamNonTTYWithFileNo
Expand Down