[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#67237] [PATCH 21/32] gnu: python-extension-helpers: Enable tests.
From: |
Sharlatan Hellseher |
Subject: |
[bug#67237] [PATCH 21/32] gnu: python-extension-helpers: Enable tests. |
Date: |
Fri, 17 Nov 2023 12:16:10 +0000 |
* gnu/packages/python-xyz.scm (python-extension-helpers): Enable tests.
[arguments]{phases}: Add 'prepare-test-environment phase.
Change-Id: I6effa60f3ccd334d11b5f86162742f2272f737b1
---
gnu/packages/python-xyz.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 318ce539db..6d3e30a91e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4254,9 +4254,22 @@ (define-public python-extension-helpers
(sha256
(base32 "1rjha07ds633fb81hn3i2yzk3v2flbi6qa091ix4mkvrgk3gl6ya"))))
(build-system pyproject-build-system)
- ;; FIXME: pytest failed to load test suit, find out why.
- ;; - _pytest.pathlib.ImportPathMismatchError: ('extension_helpers.conftes
- (arguments (list #:tests? #f))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'prepare-test-environment
+ (lambda _
+ ;; To solve pytest/conftest issue. Pytest tries to load all
+ ;; files with word 'test' in them.
+ ;;
+ ;; ImportError while loading conftest ...
+ ;; _pytest.pathlib.ImportPathMismatchError: ...
+ ;;
+ (call-with-output-file "pytest.ini"
+ (lambda (port)
+ (format port "[pytest]
+python_files = test_*.py"))))))))
(native-inputs
(list python-coverage
python-pytest
--
2.41.0
- [bug#67237] [PATCH 11/32] gnu: python-pynbody: Update to 1.4.2., (continued)
- [bug#67237] [PATCH 11/32] gnu: python-pynbody: Update to 1.4.2., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 19/32] gnu: python-stsci-imagestats: Swap to pyproject-build-system., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 12/32] gnu: python-pynbody: Prepare for cross compilation., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 18/32] gnu: python-drms: Simplify package., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 10/32] gnu: python-posix-ipc: Update to 1.1.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 17/32] gnu: splash: Update to 3.9.0., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 20/32] gnu: python-astroquery: Improve package style., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 23/32] gnu: python-extension-helpers: Update to 1.1.0., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 26/32] gnu: parfive: Improve package style., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 29/32] gnu: python-memory-profiler: Enable all tests., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 21/32] gnu: python-extension-helpers: Enable tests.,
Sharlatan Hellseher <=
- [bug#67237] [PATCH 09/32] gnu: python-jplephem: Update to 2.20., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 01/32] gnu: celestia: Update to 1.6.4., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 32/32] gnu: python-posix-ipc: Limit tests to target-x86., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 08/32] gnu: python-fitsio: Update to 1.2.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 24/32] gnu: python-poliastro: Improve package style., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 25/32] gnu: parfive: Update to 2.0.2., Sharlatan Hellseher, 2023/11/17