diff --git a/src/wormhole_mailbox_server/test/test_server.py b/src/wormhole_mailbox_server/test/test_server.py index 3812039..5eb2bdd 100644 --- a/src/wormhole_mailbox_server/test/test_server.py +++ b/src/wormhole_mailbox_server/test/test_server.py @@ -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 @@ -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): """