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

Add colorama.just_fix_windows_console() #352

Merged
merged 9 commits into from
Oct 17, 2022
Prev Previous commit
Next Next commit
Remove broken test
This test never actually tested what it claimed to, and it's broken on Win10, so just remove it.
njsmith committed Oct 17, 2022
commit 66b76eda602c87973fa25a776476d79be7d7fab7
8 changes: 0 additions & 8 deletions colorama/tests/initialise_test.py
Original file line number Diff line number Diff line change
@@ -78,14 +78,6 @@ def testInitWrapOffDoesntWrapOnWindows(self):
def testInitWrapOffIncompatibleWithAutoresetOn(self):
self.assertRaises(ValueError, lambda: init(autoreset=True, wrap=False))

@patch('colorama.ansitowin32.winterm', None)
@patch('colorama.ansitowin32.winapi_test', lambda *_: True)
def testInitOnlyWrapsOnce(self):
with osname("nt"):
init()
init()
self.assertWrapped()

@patch('colorama.win32.SetConsoleTextAttribute')
@patch('colorama.initialise.AnsiToWin32')
def testAutoResetPassedOn(self, mockATW32, _):