mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #2170 from felixonmars/patch-1
Fix test_format_xml with dot in path
This commit is contained in:
commit
6c0bbcc9ee
@ -23,7 +23,7 @@ def test_format_xml(filename):
|
||||
path = data.path(filename)
|
||||
with open(path) as f:
|
||||
input = f.read()
|
||||
with open(path.replace(".", "-formatted.")) as f:
|
||||
with open("-formatted.".join(path.rsplit(".", 1))) as f:
|
||||
expected = f.read()
|
||||
tokens = xml_html.tokenize(input)
|
||||
assert xml_html.format_xml(tokens) == expected
|
||||
|
Loading…
Reference in New Issue
Block a user