Skip to content

Commit 8f4cea1

Browse files
committed
rust: skip curses tests on Windows
curses is not available on Windows.
1 parent fea226a commit 8f4cea1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/verify_distribution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ def test_ctypes(self):
4343
def error_handler(fif, message):
4444
pass
4545

46+
@unittest.skipIf(os.name == "nt", "curses not available on Windows")
4647
def test_curses_import(self):
4748
import curses
4849

50+
@unittest.skipIf(os.name == "nt", "curses not available on Windows")
4951
@unittest.skipIf("TERM" not in os.environ, "TERM not set")
5052
def test_curses_interactive(self):
5153
import curses

0 commit comments

Comments
 (0)