Skip to content

Commit e61ce2c

Browse files
authored
Skip posix_path test on Windows (#283)
1 parent a79b365 commit e61ce2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test_unstructured/staging/test_base_staging.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
import os
44
import pathlib
5+
import platform
56
import pytest
67

78
import pandas as pd
@@ -79,6 +80,9 @@ def test_convert_to_dataframe():
7980
assert df.text.equals(expected_df.text) is True
8081

8182

83+
@pytest.mark.skipif(
84+
platform.system() == "Windows", reason="Posix Paths are not available on Windows"
85+
)
8286
def test_convert_to_isd_serializes_with_posix_paths():
8387
metadata = ElementMetadata(filename=pathlib.PosixPath("../../fake-file.txt"))
8488
elements = [

0 commit comments

Comments
 (0)