Skip to content

Commit

Permalink
Merge pull request magic-wormhole#522 from anarcat/skip-fail
Browse files Browse the repository at this point in the history
skip failing test if noiseprotocol unavailable
  • Loading branch information
meejah authored Apr 6, 2024
2 parents c76dbe1 + d875081 commit 241a835
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wormhole/test/dilate/test_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from zope.interface import alsoProvides
from twisted.trial import unittest
from twisted.internet.interfaces import ITransport
from ..._dilation._noise import NoiseInvalidMessage
from ..._dilation._noise import NoiseInvalidMessage, NoiseConnection
from ..._dilation.connection import (IFramer, Frame, Prologue,
_Record, Handshake, KCM,
Disconnect, Ping, _Framer, Data)
Expand Down Expand Up @@ -282,6 +282,8 @@ def test_large_frame(self):
Noise only allows 64KiB message, but the API allows up to 4GiB
frames
"""
if not NoiseConnection:
raise unittest.SkipTest("noiseprotocol unavailable")
# XXX could really benefit from some Hypothesis style
# exploration of more cases .. but we don't already depend on
# that library, so a future improvement
Expand Down

0 comments on commit 241a835

Please sign in to comment.