From c1249414d640dbd7e6bd11c0d04955a92a9d7566 Mon Sep 17 00:00:00 2001 From: Tomas Hrnciar Date: Tue, 4 Aug 2020 14:49:05 +0200 Subject: [PATCH] Add definition for DATADIR --- test_pyproject_save_files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_pyproject_save_files.py b/test_pyproject_save_files.py index e771a8e..43d715f 100755 --- a/test_pyproject_save_files.py +++ b/test_pyproject_save_files.py @@ -11,6 +11,7 @@ from pyproject_save_files import BuildrootPath DIR = Path(__file__).parent BINDIR = BuildrootPath("/usr/bin") +DATADIR = BuildrootPath("/usr/share") SITELIB = BuildrootPath("/usr/lib/python3.7/site-packages") SITEARCH = BuildrootPath("/usr/lib64/python3.7/site-packages") @@ -156,7 +157,7 @@ def test_parse_record_tensorflow(): def remove_others(expected): - return [p for p in expected if not (p.startswith(str(BINDIR)) or p.startswith("/usr/share") or p.endswith(".pth"))] + return [p for p in expected if not (p.startswith(str(BINDIR)) or p.startswith(str(DATADIR)) or p.endswith(".pth"))] @pytest.mark.parametrize("include_auto", (True, False))