Package list python-pauvre / c6d5a106-eff5-4458-a5df-2a82a90c3778/main debian / patches / lsi-test-args.patch
c6d5a106-eff5-4458-a5df-2a82a90c3778/main

Tree @c6d5a106-eff5-4458-a5df-2a82a90c3778/main (Download .tar.gz)

lsi-test-args.patch @c6d5a106-eff5-4458-a5df-2a82a90c3778/mainraw · history · blame

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 <etienne.mollier@mailoo.org>
Forwarded: not-needed
Last-Update: 2020-04-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: python-pauvre/pauvre/lsi/test.py
===================================================================
--- python-pauvre.orig/pauvre/lsi/test.py
+++ python-pauvre/pauvre/lsi/test.py
@@ -10,6 +10,9 @@ from .helper import *
 
 ev = 0.00000001
 
+sys.argv[1] = '10'
+sys.argv[2] = None
+
 def scale(i):
 	return float(i)