From a3d9e3e8e42ed04c99373f493fbd6b81b2f2f2e9 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Sat, 4 Jul 2020 18:54:45 -0700 Subject: [PATCH] Skip DefaultAPITests on Windows where /dev/tty does not exist --- src/twisted/conch/test/test_knownhosts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/twisted/conch/test/test_knownhosts.py b/src/twisted/conch/test/test_knownhosts.py index 683ee76f133..7318f1847c7 100644 --- a/src/twisted/conch/test/test_knownhosts.py +++ b/src/twisted/conch/test/test_knownhosts.py @@ -8,6 +8,7 @@ import os from binascii import Error as BinasciiError, b2a_base64, a2b_base64 +from unittest import skipIf from zope.interface.verify import verifyObject @@ -1155,6 +1156,7 @@ class FakeObject: """ +@skipIf(not FilePath("/dev/tty").exists(), "Platform lacks /dev/tty") class DefaultAPITests(TestCase): """ The API in L{twisted.conch.client.default.verifyHostKey} is the integration