From 7c829150ed2197359982e02f2d1dd25a2c868013 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Sat, 11 Sep 2021 14:39:41 +0200 Subject: gnu: python-stem: Fix tests wth python 3.9. * gnu/packages/python-xyz.scm (python-stem)[arguments]: Add 'fix-tests' phase. --- gnu/packages/python-xyz.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index aa3f7d24e2..506df43094 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15641,6 +15641,12 @@ documentation to argparse configuration.") (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + ;; See https://github.com/torproject/stem/issues/56 + (lambda _ + (substitute* "run_tests.py" + (("test\\.task\\.MOCK_VERSION,") + "")))) (replace 'check (lambda _ (invoke "./run_tests.py" "--unit") -- cgit v1.2.3