Skip to content

Commit a92129c

Browse files
committed
Fix tests on Python 3.8
__file__ used to not be absolute, so we need to explicitly make it so.
1 parent b747d83 commit a92129c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pathlib import Path
1111

1212
TESTS = Path(__file__).parent / 'tests'
13-
VALIDATE_GENERATED_FILES = Path(__file__).parent / 'validate-generated-files.py'
13+
VALIDATE_GENERATED_FILES = Path(__file__).absolute().parent / 'validate-generated-files.py'
1414

1515
EXPECTED = [
1616
(TESTS / 'ok', 0),

0 commit comments

Comments
 (0)