Skip to content

Commit

Permalink
Updated tests related to previous changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonypiazza authored and mtik00 committed Jan 6, 2018
1 parent fbceaa3 commit 3fea7d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_exceptions/test_utility_functions.py
Expand Up @@ -6,11 +6,13 @@


def test_clear_screen():
(is_win, is_lin) = ('win' in sys.platform, 'lin' in sys.platform)
is_win = sys.platform.startswith('win')
is_nix = sys.platform.startswith('lin') or sys.platform.startswith('darwin')

climenu.IS_WIN = False
climenu.IS_LIN = False
climenu.IS_NIX = False

with pytest.raises(NotImplementedError):
climenu.clear_screen()

(climenu.IS_WIN, climenu.IS_LIN) = (is_win, is_lin)
(climenu.IS_WIN, climenu.IS_NIX) = (is_win, is_nix)

0 comments on commit 3fea7d1

Please sign in to comment.