Skip to content

Commit 8244ba1

Browse files
committed
Windows needs raw strings in file names...
so "\t" isn't misinterpreted
1 parent e547752 commit 8244ba1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_importexport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ def test_export():
1919

2020
def run_export(temp_dirname: str, short_name: str, file_data:str, character_encoding):
2121
file_path = osp.join(temp_dirname, short_name)
22-
expr = f'Export["{file_path}", {file_data}'
22+
expr = fr'Export["{file_path}", {file_data}'
2323
expr += ', CharacterEncoding -> "{character_encoding}"' if character_encoding else ""
2424
expr += "]"
2525
result = session.evaluate(expr)
26-
assert result.to_python() == f'"{file_path}"'
26+
assert result.to_python() == fr'"{file_path}"'
2727
return file_path
2828

2929
def check_data(temp_dirname: str, short_name: str, file_data:str,
3030
character_encoding=None, expected_data=None):
31-
file_path = run_export(temp_dirname, short_name, f'"{file_data}"', character_encoding)
31+
file_path = run_export(temp_dirname, short_name, fr'"{file_data}"', character_encoding)
3232
if expected_data is None:
3333
expected_data = file_data
3434
assert open(file_path, "r").read() == expected_data

0 commit comments

Comments
 (0)