Skip to content

Commit 9858092

Browse files
committed
Fixed tests on Windows (attempt 2)
1 parent 2948868 commit 9858092

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

domdf_python_tools/terminal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
import struct
6969
import subprocess
7070
import sys
71-
import termios
7271
import textwrap
7372
from typing import Optional, Tuple
7473

@@ -203,7 +202,9 @@ def _get_terminal_size_tput() -> Optional[Tuple[int, int]]:
203202

204203

205204
def _get_terminal_size_posix() -> Optional[Tuple[int, int]]:
205+
# stdlib
206206
import fcntl
207+
import termios
207208

208209
def ioctl_GWINSZ(fd):
209210
try:

0 commit comments

Comments
 (0)