mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Replace variables before comparing expected files.
* expected_files.py: Use formatted_content instead of file.content.
This commit is contained in:
parent
e4db00d74d
commit
7e5079c40f
@ -37,9 +37,10 @@ class ExpectedFiles:
|
||||
for file in self.expected_fs:
|
||||
if file.name in local_fs:
|
||||
local_file = local_fs.pop(file.name)
|
||||
if file.content != local_file['content']:
|
||||
formatted_content = test_obj._replace_substring(file.content)
|
||||
if formatted_content != local_file['content']:
|
||||
for line in unified_diff(local_file['content'],
|
||||
file.content,
|
||||
formatted_content,
|
||||
fromfile='Actual',
|
||||
tofile='Expected'):
|
||||
print(line, file=sys.stderr)
|
||||
|
Loading…
Reference in New Issue
Block a user