diff --git a/debian/patches/lsi-test-args.patch b/debian/patches/lsi-test-args.patch new file mode 100644 index 0000000..ef219b7 --- /dev/null +++ b/debian/patches/lsi-test-args.patch @@ -0,0 +1,21 @@ +Description: inject arguments in test script + The script expects a few arguments which are not passed by the testing + infrastructure. This breaks the test. The integer value in sys.argv[1] is + picked at random, but could be subject to discussion. +Author: Étienne Mollier +Forwarded: not-needed +Last-Update: 2020-04-26 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- python-pauvre.orig/pauvre/lsi/test.py ++++ python-pauvre/pauvre/lsi/test.py +@@ -10,6 +10,9 @@ + + ev = 0.00000001 + ++sys.argv[1] = '10' ++sys.argv[2] = None ++ + def scale(i): + return float(i) + diff --git a/debian/patches/series b/debian/patches/series index fd1ff6f..2de8f81 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 2to3.patch typo-redwood.patch +lsi-test-args.patch