Skip to content

Commit 68f24bd

Browse files
committed
disable test_get_and_put() on win32
1 parent caf3d59 commit 68f24bd

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

test/test_files.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
import sys
23
from .helper import check_evaluation, evaluate
34

45

@@ -19,12 +20,13 @@ def test_unprotected():
1920
check_evaluation(str_expr, str_expected, message)
2021

2122

22-
def test_get_and_put():
23-
temp_filename = evaluate('$TemporaryDirectory<>"/testfile"').to_python()
24-
temp_filename_strip = temp_filename[1:-1]
25-
check_evaluation(f"40! >> {temp_filename_strip}", "Null")
26-
check_evaluation(f"<< {temp_filename_strip}", "40!")
27-
check_evaluation(f"DeleteFile[{temp_filename}]", "Null")
23+
if sys.platform not in ("win32",):
24+
def test_get_and_put():
25+
temp_filename = evaluate('$TemporaryDirectory<>"/testfile"').to_python()
26+
temp_filename_strip = temp_filename[1:-1]
27+
check_evaluation(f"40! >> {temp_filename_strip}", "Null")
28+
check_evaluation(f"<< {temp_filename_strip}", "40!")
29+
check_evaluation(f"DeleteFile[{temp_filename}]", "Null")
2830

2931

3032
# I do not know what is it supposed to test with this...

0 commit comments

Comments
 (0)