diff --git a/tests/test__version__.py b/tests/test__version__.py index 668c06a..e1143cf 100644 --- a/tests/test__version__.py +++ b/tests/test__version__.py @@ -20,7 +20,7 @@ def test_copyright_year() -> None: def test_copyright_year_in_license() -> None: current = datetime.now().year - license_path = Path.cwd().parents[0] / "LICENSE" + license_path = Path(__file__) / ".." / "LICENSE" with open(license_path) as fp: license_text = fp.read()