[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#67237] [PATCH 29/32] gnu: python-memory-profiler: Enable all tests.
From: |
Sharlatan Hellseher |
Subject: |
[bug#67237] [PATCH 29/32] gnu: python-memory-profiler: Enable all tests. |
Date: |
Fri, 17 Nov 2023 12:16:18 +0000 |
* gnu/packages/python-check.scm (python-memory-profiler): Enable all
available tests.
[arguments]{phases}: Remove 'disable-failing-tests phase. Use custom
'check phase.
Change-Id: Icce21131d9526c81a4cdfa7aa43be85c8f981065
---
gnu/packages/python-check.scm | 26 ++++----------------------
1 file changed, 4 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 7412c04ce0..c98a1f4dd9 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1755,28 +1755,10 @@ (define-public python-memory-profiler
(list
#:phases
#~(modify-phases %standard-phases
- ;; XXX: @profile is not loaded in some test files and there are 3
- ;; tests fail, disable them for now.
- (add-after 'unpack 'disable-failing-tests
- (lambda _
- (with-directory-excursion "test"
- (for-each delete-file
- '("test_as.py"
- "test_func.py"
- "test_gen.py"
- "test_loop.py"
- "test_loop_decorated.py"
- "test_mprofile.py"
- "test_nested.py"
- "test_precision_command_line.py"
- "test_unicode.py")))
- (substitute* "test/test_attributes.py"
- (("def test_with_profile") "def __off_test_with_profile"))
- (substitute* "test/test_stream_unicode.py"
- (("def test_unicode") "def __off_test_unicode"))
- (substitute* "test/test_tracemalloc.py"
- (("def test_memory_profiler")
- "def __off_test_memory_profiler")))))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "test")))))))
(native-inputs
(list python-pytest python-pytest-fixture-config python-safety))
(propagated-inputs (list python-psutil))
--
2.41.0
- [bug#67237] [PATCH 03/32] gnu: libpasastro: Update to 1.4.1., (continued)
- [bug#67237] [PATCH 03/32] gnu: libpasastro: Update to 1.4.1., Sharlatan Hellseher, 2023/11/17
- [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 <=
- [bug#67237] [PATCH 21/32] gnu: python-extension-helpers: Enable tests., Sharlatan Hellseher, 2023/11/17
- [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