Skip to content

Commit

Permalink
Fix integration tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer committed Sep 1, 2019
1 parent fdf80d7 commit cb08cad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration/radish/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
:license: MIT, see LICENSE for more details.
"""

import re
import os
import shutil
import tempfile
Expand Down Expand Up @@ -40,7 +39,7 @@ def gather_failure(step):
if step.state is not State.FAILED:
return
with open("{}", "w+", encoding="utf-8") as failure_report_file:
with open(r"{}", "w+", encoding="utf-8") as failure_report_file:
failure_report_file.write("{{}}\\n".format(step.failure_report.name))
failure_report_file.write("{{}}\\n".format(step.failure_report.reason))
""".format(
Expand Down Expand Up @@ -154,7 +153,7 @@ def expect_fail(step):
+ stdout
)

match = re.search(step.doc_string, stdout)
match = step.doc_string in stdout
assert match, (
"Searched for:\n" + step.doc_string + "\n" + "within stdout:\n" + stdout
)

0 comments on commit cb08cad

Please sign in to comment.