Skip to content

Commit a61fbd5

Browse files
committed
skip the uploadtwice02 test on non-Windows systems for os.unlink only raises a locking error on Windows
1 parent 1f0093e commit a61fbd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_uploading_same_file_twice_with_errors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from pathlib import Path
23
import shutil
34
import threading
@@ -139,6 +140,7 @@ def upload_file(file_to_upload):
139140

140141

141142
# Run with pytest -k uploadtwice02
143+
@pytest.mark.skipif(sys.platform in ["linux", "darwin"], reason="os.unlik() is not blocking on Linux and MacOS")
142144
def test_uploadtwice02_upload_a_file_twice_with_error(
143145
dash_duo, testfile10kb_csv, testfile10kb_2_csv
144146
):

0 commit comments

Comments
 (0)