Skip to content

Commit 4d2ad0d

Browse files
committed
chore: standardize access to the offending source
Signed-off-by: Brian Harring <[email protected]>
1 parent c4994d6 commit 4d2ad0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/scripts/test_pkgcheck_scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def _load_expected_data(self, base: pathlib.Path) -> _expected_data_result:
621621

622622
if not callable(custom_handler):
623623
pytest.fail(f"{custom_handler_path} handler isn't invokable")
624-
custom_handler.__source_path__ = custom_handler_path # pyright: ignore[reportFunctionMemberAccess]
624+
custom_handler.__source_file__ = custom_handler_path # pyright: ignore[reportFunctionMemberAccess]
625625
except FileNotFoundError:
626626
pass
627627

@@ -721,7 +721,7 @@ def test_scan_repo(self, repo, tmp_path_factory):
721721

722722
except Exception as e:
723723
pytest.fail(
724-
f"handler {data.custom_filter.__source_path__!r} threw an exception: {e!r}" # type: ignore
724+
f"handler {data.custom_filter.__source_file__!r} threw an exception: {e!r}" # type: ignore
725725
)
726726

727727
def assert_same(sources, results, verbose=False):

0 commit comments

Comments
 (0)