summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2024-12-31 08:42:51 +0100
committerDanny Milosavljevic <dannym@friendly-machines.com>2024-12-31 08:50:19 +0100
commit42e6cafdbeada03cdb144f544d093f84639613aa (patch)
tree2808c682451871cb27dd982772e9eea297cf7648 /gnu
parent1fc78ed02d890692fa3fb6a9609fc5cf54658a20 (diff)
gnu: python-cachy: Adapt tests to python-flexmock 0.12.2.
* gnu/packages/python-xyz.scm (python-cachy)[arguments]<#:phases>[check]: Adapt tests to python-flexmock 0.12.2. Change-Id: I5e462df305a16c6ea4c6e5b92cd35ebfc72270dd
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9147f3ed7d1..5fd6cefbbed 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22499,8 +22499,13 @@ classes can also be supported by manually registering converters.")
'(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
- "pytest"))))))
+ (lambda _
+ ;; Make it compatible with python-flexmock 0.12.
+ (substitute* (find-files "tests" "\\.py$")
+ (("from flexmock import flexmock, flexmock_teardown")
+ "from flexmock import flexmock; from flexmock._api import flexmock_teardown"))
+ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
+ "pytest"))))))
(native-inputs
(list memcached python-fakeredis python-flexmock python-pifpaf
python-pytest))