mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
[Tests] Escape backslashes in filename in webserver test
This commit is contained in:
parent
23f7c4dd6e
commit
4497c9bbcc
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ class WebServerTestCase(WebServerTestBase, WebServerMockBase):
|
|||
# UnicodeDecodeError: 'utf8' codec can't decode byte 0xe5 in position 0: invalid continuation byte
|
||||
filename = get_test_data_file('filehash_field.torrent')
|
||||
input_file = (
|
||||
'{"params": ["%s"], "method": "web.get_torrent_info", "id": 22}' % filename
|
||||
'{"params": ["%s"], "method": "web.get_torrent_info", "id": 22}'
|
||||
% filename.replace('\\', '\\\\')
|
||||
)
|
||||
headers = {
|
||||
b'User-Agent': ['Twisted Web Client Example'],
|
||||
|
|
Loading…
Add table
Reference in a new issue