We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac1f13e commit ed986bbCopy full SHA for ed986bb
1 file changed
tests/test_router.py
@@ -4,7 +4,7 @@
4
import pytest
5
import requests
6
import werkzeug
7
-from werkzeug.exceptions import MethodNotAllowed, NotFound
+from werkzeug.exceptions import MethodNotAllowed, NotFound, SecurityError
8
from werkzeug.routing import RequestRedirect, Submount
9
10
from rolo import Request, Response, Router
@@ -166,7 +166,7 @@ def test_port_host_dispatcher(self):
166
assert collector.requests.pop()[2] == {"port": None}
167
168
# invalid port
169
- with pytest.raises(NotFound):
+ with pytest.raises((NotFound, SecurityError)):
170
router.dispatch(
171
Request(
172
method="GET",
0 commit comments