From 5037b08b934a68b297b0db484006d2d3ce026adb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 11 Aug 2021 16:14:55 +0300 Subject: gnu: python-fixtures: Honor tests? in the check phase. * gnu/packages/check.scm (python-fixtures)[arguments]: Adjust 'check phase to honor #:tests. --- gnu/packages/check.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index eb20d0fd54..f6f225c2f7 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1611,9 +1611,10 @@ python-fixtures package instead.") '(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "python" "-m" "testtools.run" - "fixtures.test_suite")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "testtools.run" + "fixtures.test_suite"))))))) (propagated-inputs ;; Fixtures uses pbr at runtime to check versions, etc. `(("python-pbr" ,python-pbr) -- cgit v1.2.3