Skip to content

Commit

Permalink
skip in py2-compatible way :(
Browse files Browse the repository at this point in the history
  • Loading branch information
meejah committed Aug 30, 2022
1 parent bfb4b99 commit 2eb38a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/wormhole_mailbox_server/test/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import mock
import subprocess
import packaging.version
from unittest import skipIf
from unittest import SkipTest

from twisted.trial import unittest
from twisted.python import log
Expand Down Expand Up @@ -655,12 +655,15 @@ def test_default_permission(self):
)


@skipIf(packaging.version.parse(autobahn.version) <= packaging.version.parse("22.6.1"), "need newer Autobahn to run this test")
class PermissionsServer(unittest.TestCase):
"""
Test operation of the WebSocket permissions / submit-permissions.
"""

def setUp(self):
if packaging.version.parse(autobahn.version) <= packaging.version.parse("22.6.1"):
raise SkipTest("need newer Autobahn to run this test")

@inlineCallbacks
def test_submit_success(self):
"""
Expand Down

0 comments on commit 2eb38a8

Please sign in to comment.