Skip to content

Commit

Permalink
satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kizzx2 committed Nov 3, 2024
1 parent aea0b2a commit d3d5d00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_sbe.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import sbe

def test_parse1():
with open('tests/dat/example-schema.xml', 'r') as f:
with open('tests/dat/example-schema.xml', 'r', encoding='utf-8') as f:
sbe.Schema.parse(f)

def test_parse2():
with open('tests/dat/b3-entrypoint-messages-8.0.0.xml', 'r') as f:
with open('tests/dat/b3-entrypoint-messages-8.0.0.xml', 'r', encoding='utf-8') as f:
sbe.Schema.parse(f)

def test_nullValue():
with open('tests/dat/example-schema.xml', 'r') as f:
with open('tests/dat/example-schema.xml', 'r', encoding='utf-8') as f:
s = sbe.Schema.parse(f)
nullable = s.messages[2]

Expand All @@ -22,7 +22,7 @@ def test_nullValue():
assert decodedNull.value['nullable'] is None

def test_blockLength():
with open('tests/dat/example-schema.xml', 'r') as f:
with open('tests/dat/example-schema.xml', 'r', encoding='utf-8') as f:
s = sbe.Schema.parse(f)
msg = s.messages[3]

Expand Down

0 comments on commit d3d5d00

Please sign in to comment.