test_connect: skip integration test when Noise is unavailable

This commit is contained in:
Brian Warner 2019-02-09 18:22:51 -08:00
parent 7f03adda3a
commit a2a149946b

View File

@ -9,6 +9,7 @@ from zope.interface import implementer
from ... import _interfaces
from ...eventual import EventualQueue
from ..._dilation import manager
from ..._dilation._noise import NoiseConnection
@implementer(_interfaces.ISend)
@ -29,6 +30,8 @@ class MySend(object):
class Connect(unittest.TestCase):
@inlineCallbacks
def test1(self):
if not NoiseConnection:
raise unittest.SkipTest("noiseprotocol unavailable")
#print()
send_left = MySend("left")
send_right = MySend("right")