Skip to content

Commit

Permalink
Ensure UTF-8 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Jun 20, 2023
1 parent b73b87a commit 67cc676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/units/test_sexpr.py
Expand Up @@ -31,13 +31,13 @@ def test_readQuotedString():

def test_identiy():
SOURCE = "../resources/conn.kicad_pcb"
with open(SOURCE) as f:
with open(SOURCE, encoding="utf-8") as f:
truth = f.read()

with open(SOURCE) as f:
with open(SOURCE, encoding="utf-8") as f:
ast1 = parseSexprF(f)
assert str(ast1) == truth

with open(SOURCE) as f:
with open(SOURCE, encoding="utf-8") as f:
ast2 = parseSexprF(f, limit=3)
assert str(ast2) == truth

0 comments on commit 67cc676

Please sign in to comment.