Skip to content

Commit

Permalink
use encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry committed Nov 21, 2023
1 parent bf4980b commit 0807baf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_jobfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from testmodule import JobFile

from testmodule.helpers import _encoding


def test_jobfile_string_input():
"""Test if Jobfile can be created from string input."""
Expand Down Expand Up @@ -30,6 +32,6 @@ def test_jobfile_bytes_input():
END
"""

job = JobFile(input_string.encode("cp1252"))
job = JobFile(input_string.encode(_encoding))
assert job.foldername == "MAIN"
assert job.comment_lines[0] == (4, "'A comment")

0 comments on commit 0807baf

Please # to comment.