diff --git a/pytest_watcher/terminal.py b/pytest_watcher/terminal.py index 47d5985..27ecd1e 100644 --- a/pytest_watcher/terminal.py +++ b/pytest_watcher/terminal.py @@ -3,10 +3,14 @@ import os import select import sys -import termios -import tty from typing import List, Optional +try: + import termios + import tty +except ImportError: + pass + class Terminal(abc.ABC): def clear(self):