diff --git a/tests/test_jobfile.py b/tests/test_jobfile.py index 8a5c95b..12885e3 100644 --- a/tests/test_jobfile.py +++ b/tests/test_jobfile.py @@ -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.""" @@ -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")