From 2a652f800f88d76d3db6fbf9e97357b7c32f8913 Mon Sep 17 00:00:00 2001 From: Marcel Wilson Date: Fri, 16 Feb 2024 10:43:38 -0600 Subject: [PATCH] fixing relative pathing in test --- tests/test__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()