Skip to content

Commit

Permalink
Ignore coverage for clear_screen on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestum committed Dec 15, 2023
1 parent dcedcac commit c9f0956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imitation/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,6 @@ def split_in_half(x: int) -> Tuple[int, int]:
def clear_screen() -> None:
"""Clears the console screen."""
if os.name == "nt": # Windows
os.system("cls")
os.system("cls") # pragma: no cover
else:
os.system("clear")

0 comments on commit c9f0956

Please sign in to comment.