Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest
import requests
import werkzeug
from werkzeug.exceptions import MethodNotAllowed, NotFound
from werkzeug.exceptions import MethodNotAllowed, NotFound, SecurityError
from werkzeug.routing import RequestRedirect, Submount

from rolo import Request, Response, Router
Expand Down Expand Up @@ -166,7 +166,7 @@ def test_port_host_dispatcher(self):
assert collector.requests.pop()[2] == {"port": None}

# invalid port
with pytest.raises(NotFound):
with pytest.raises((NotFound, SecurityError)):
router.dispatch(
Request(
method="GET",
Expand Down
Loading