Skip to content

Commit 194c49a

Browse files
committed
Skip UnixRouterTests when werkzeug is not installed.
Refs #1639.
1 parent 69ec85e commit 194c49a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/asyncio/test_router.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ async def handler(self, connection):
186186

187187

188188
@unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets")
189+
@unittest.skipUnless("werkzeug" in sys.modules, "werkzeug not installed")
189190
class UnixRouterTests(EvalShellMixin, unittest.IsolatedAsyncioTestCase):
190191
async def test_router_supports_unix_sockets(self):
191192
"""Router supports Unix sockets."""

tests/sync/test_router.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def handler(self, connection):
162162

163163

164164
@unittest.skipUnless(hasattr(socket, "AF_UNIX"), "this test requires Unix sockets")
165+
@unittest.skipUnless("werkzeug" in sys.modules, "werkzeug not installed")
165166
class UnixRouterTests(EvalShellMixin, unittest.IsolatedAsyncioTestCase):
166167
def test_router_supports_unix_sockets(self):
167168
"""Router supports Unix sockets."""

0 commit comments

Comments
 (0)