void-packages/srcpkgs/urlwatch/patches/test_handler.patch
2022-04-02 19:35:00 +02:00

14 lines
643 B
Diff

Work around https://github.com/thp/urlwatch/issues/677
diff --git a/lib/urlwatch/tests/test_handler.py b/lib/urlwatch/tests/test_handler.py
index 736536a..fac9449 100644
--- a/lib/urlwatch/tests/test_handler.py
+++ b/lib/urlwatch/tests/test_handler.py
@@ -89,6 +89,7 @@ def test_pep8_conformance():
class ConfigForTest(CommandConfig):
def __init__(self, config, urls, cache, hooks, verbose):
+ sys.argv = sys.argv[:1]
(prefix, bindir) = os.path.split(os.path.dirname(os.path.abspath(sys.argv[0])))
super().__init__('urlwatch', os.path.dirname(__file__), bindir, prefix, config, urls, hooks, cache, verbose)