Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 9e96a78

Browse files
lordmauvesambhav
authored andcommitted
Use relative paths to avoid case issues on Windows
1 parent 0854a95 commit 9e96a78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests/test_definitions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import sys
44
import os
5+
import os.path
56
import re
67
import pytest
78
from pydocstyle.violations import Error, ErrorRegistry
@@ -59,7 +60,7 @@ def run_case(test_case):
5960
fromlist=['expectation'],
6061
level=1)
6162

62-
test_case_file = case_module.__file__
63+
test_case_file = os.path.relpath(case_module.__file__)
6364
results = list(check([test_case_file],
6465
select=set(ErrorRegistry.get_error_codes()),
6566
ignore_decorators=re.compile(

0 commit comments

Comments
 (0)