Skip to content

Commit ed986bb

Browse files
authored
fix test_port_host_dispatcher with new werkzeug version (#37)
1 parent ac1f13e commit ed986bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pytest
55
import requests
66
import werkzeug
7-
from werkzeug.exceptions import MethodNotAllowed, NotFound
7+
from werkzeug.exceptions import MethodNotAllowed, NotFound, SecurityError
88
from werkzeug.routing import RequestRedirect, Submount
99

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

168168
# invalid port
169-
with pytest.raises(NotFound):
169+
with pytest.raises((NotFound, SecurityError)):
170170
router.dispatch(
171171
Request(
172172
method="GET",

0 commit comments

Comments
 (0)