test_connect: skip integration test when Noise is unavailable
This commit is contained in:
parent
7f03adda3a
commit
a2a149946b
|
@ -9,6 +9,7 @@ from zope.interface import implementer
|
||||||
from ... import _interfaces
|
from ... import _interfaces
|
||||||
from ...eventual import EventualQueue
|
from ...eventual import EventualQueue
|
||||||
from ..._dilation import manager
|
from ..._dilation import manager
|
||||||
|
from ..._dilation._noise import NoiseConnection
|
||||||
|
|
||||||
|
|
||||||
@implementer(_interfaces.ISend)
|
@implementer(_interfaces.ISend)
|
||||||
|
@ -29,6 +30,8 @@ class MySend(object):
|
||||||
class Connect(unittest.TestCase):
|
class Connect(unittest.TestCase):
|
||||||
@inlineCallbacks
|
@inlineCallbacks
|
||||||
def test1(self):
|
def test1(self):
|
||||||
|
if not NoiseConnection:
|
||||||
|
raise unittest.SkipTest("noiseprotocol unavailable")
|
||||||
#print()
|
#print()
|
||||||
send_left = MySend("left")
|
send_left = MySend("left")
|
||||||
send_right = MySend("right")
|
send_right = MySend("right")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user