forked from Lainports/freebsd-ports
- Add upstream [1] patch to prevent tlsh dependent tests from failing Changelog: 145: https://lists.reproducible-builds.org/pipermail/rb-general/2020-May/001947.html 146: https://lists.reproducible-builds.org/pipermail/rb-general/2020-May/001948.html 147: https://lists.reproducible-builds.org/pipermail/rb-general/2020-June/001964.html [1] https://lists.reproducible-builds.org/pipermail/diffoscope/2020-June/002642.html PR: 246773 Submitted by: Fabian Keil <fk fabiankeil de> MFH: No (combined feature/bugfix releases)
14 lines
525 B
Python
14 lines
525 B
Python
# Add a patch from Mattia Rizzolo to prevent tests
|
|
# from failing due to the no-tlsh-module warning.
|
|
|
|
--- diffoscope/main.py.orig 2020-06-11 11:45:39 UTC
|
|
+++ diffoscope/main.py
|
|
@@ -658,7 +658,7 @@ def run_diffoscope(parsed_args):
|
|
|
|
ProfileManager().setup(parsed_args)
|
|
PresenterManager().configure(parsed_args)
|
|
- if not tlsh:
|
|
+ if not tlsh and "PYTEST_CURRENT_TEST" not in os.environ:
|
|
logger.warning(
|
|
'Fuzzy-matching is currently disabled as the "tlsh" module is unavailable.'
|
|
)
|