We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7e19f commit b8b45b7Copy full SHA for b8b45b7
src/pytest_recording/_vcr.py
@@ -21,7 +21,12 @@
21
22
from .utils import ConfigType, merge_kwargs, unique, unpack
23
24
-MAX_FILENAME_LEN = os.pathconf(".", "PC_NAME_MAX")
+try:
25
+ # Try to get max filename length on Unix-like systems
26
+ MAX_FILENAME_LEN = os.pathconf(".", "PC_NAME_MAX")
27
+except (AttributeError, ValueError, OSError):
28
+ # Fallback for Windows or unsupported systems
29
+ MAX_FILENAME_LEN = 255
30
31
32
def load_cassette(cassette_path: str, serializer: ModuleType) -> Tuple[List, List]:
0 commit comments