Skip to content

Commit

Permalink
Merge pull request scrapinghub#130 from scrapinghub/non-ascii
Browse files Browse the repository at this point in the history
support non-ascii output in fixtures
  • Loading branch information
kmike authored Feb 15, 2023
2 parents 8d9ab30 + 00805f0 commit 94365fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_poet/testing/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ def save(
storage = SerializedDataFileStorage(fixture.input_path)
storage.write(serialized_inputs)
with fixture.output_path.open("w") as f:
json.dump(ItemAdapter(item).asdict(), f, ensure_ascii=True, indent=4)
json.dump(ItemAdapter(item).asdict(), f, ensure_ascii=False, indent=4)
if meta:
with fixture.meta_path.open("w") as f:
json.dump(meta, f, ensure_ascii=True, indent=4)
json.dump(meta, f, ensure_ascii=False, indent=4)
return fixture

0 comments on commit 94365fe

Please sign in to comment.