Skip to content

Commit 06c9ade

Browse files
committed
Moved RESET to end of color dictionaries and skip a test on Mac since it is unreliable on Azure DevOps CI
1 parent f91ccf2 commit 06c9ade

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cmd2/ansi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
'magenta': Fore.MAGENTA,
3030
'cyan': Fore.CYAN,
3131
'white': Fore.WHITE,
32-
'reset': Fore.RESET,
3332
'bright_black': Fore.LIGHTBLACK_EX,
3433
'bright_red': Fore.LIGHTRED_EX,
3534
'bright_green': Fore.LIGHTGREEN_EX,
@@ -38,6 +37,7 @@
3837
'bright_magenta': Fore.LIGHTMAGENTA_EX,
3938
'bright_cyan': Fore.LIGHTCYAN_EX,
4039
'bright_white': Fore.LIGHTWHITE_EX,
40+
'reset': Fore.RESET,
4141
}
4242

4343
# Background color presets
@@ -50,7 +50,6 @@
5050
'magenta': Back.MAGENTA,
5151
'cyan': Back.CYAN,
5252
'white': Back.WHITE,
53-
'reset': Back.RESET,
5453
'bright_black': Back.LIGHTBLACK_EX,
5554
'bright_red': Back.LIGHTRED_EX,
5655
'bright_green': Back.LIGHTGREEN_EX,
@@ -59,6 +58,7 @@
5958
'bright_magenta': Back.LIGHTMAGENTA_EX,
6059
'bright_cyan': Back.LIGHTCYAN_EX,
6160
'bright_white': Back.LIGHTWHITE_EX,
61+
'reset': Back.RESET,
6262
}
6363

6464
FG_RESET = FG_COLORS['reset']

tests/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ def test_proc_reader_terminate(pr_none):
245245
else:
246246
assert ret_code == -signal.SIGTERM
247247

248-
@pytest.mark.skipif(sys.platform == 'linux', reason="Test doesn't work correctly on TravisCI")
248+
@pytest.mark.skipif(not sys.platform.startswith('win'),
249+
reason="Test doesn't work correctly on TravisCI and is unreliable on Azure DevOps macOS")
249250
def test_proc_reader_wait(pr_none):
250251
assert pr_none._proc.poll() is None
251252
pr_none.wait()

0 commit comments

Comments
 (0)