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

Commit

Permalink
Use relative paths to avoid case issues on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve authored and samj1912 committed Sep 6, 2020
1 parent 0854a95 commit 9e96a78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests/test_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import sys
import os
import os.path
import re
import pytest
from pydocstyle.violations import Error, ErrorRegistry
Expand Down Expand Up @@ -59,7 +60,7 @@ def run_case(test_case):
fromlist=['expectation'],
level=1)

test_case_file = case_module.__file__
test_case_file = os.path.relpath(case_module.__file__)
results = list(check([test_case_file],
select=set(ErrorRegistry.get_error_codes()),
ignore_decorators=re.compile(
Expand Down

0 comments on commit 9e96a78

Please sign in to comment.