Skip to content

Commit

Permalink
Fix termios, tty import issue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
olzhasar committed Feb 6, 2024
1 parent 89d60b9 commit 93dec6c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pytest_watcher/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 93dec6c

Please sign in to comment.