Skip to content

Commit 4ca8cfa

Browse files
committed
Fix test
1 parent 58a2640 commit 4ca8cfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_proxies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ def request_get(port, path, token, host='localhost'):
1818

1919

2020
def test_server_proxy_url_encoding():
21-
special_path = 'Hellö Wörld 🎉你好世界@±¥'
22-
test_url = quote('/python-http/' + special_path)
21+
special_path = quote('Hellö Wörld 🎉你好世界@±¥')
22+
test_url = '/python-http/' + special_path
2323
r = request_get(PORT, test_url, TOKEN)
2424
assert r.code == 200
25-
s = r.read().decode('utf-8')
25+
s = r.read().decode('ascii')
2626
assert s.startswith('GET /{}?token='.format(special_path))
2727

2828

0 commit comments

Comments
 (0)