mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: python-gevent: Remove unreliable test.
* gnu/packages/python.scm (python-gevent): Add 'skip-timer-test phase from python2-gevent. * gnu/packages/python.scm (python2-gevent): Remove 'skip-timer-test phase, inherit from python-gevent instead.
This commit is contained in:
parent
435d8a83b5
commit
799f5d0df0
1 changed files with 7 additions and 11 deletions
|
@ -9226,6 +9226,13 @@ (define-public python-gevent
|
||||||
(setenv "CPATH"
|
(setenv "CPATH"
|
||||||
(string-append greenlet "/" python)))))
|
(string-append greenlet "/" python)))))
|
||||||
#t))
|
#t))
|
||||||
|
(add-before 'check 'skip-timer-test
|
||||||
|
(lambda _
|
||||||
|
;; XXX: Skip 'TestTimerResolution', which appears to be
|
||||||
|
;; unreliable.
|
||||||
|
(substitute* "src/greentest/test__core_timer.py"
|
||||||
|
(("not greentest.RUNNING_ON_CI") "False"))
|
||||||
|
#t))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Make sure the build directory is on PYTHONPATH.
|
;; Make sure the build directory is on PYTHONPATH.
|
||||||
|
@ -9266,17 +9273,6 @@ (define-public python2-gevent
|
||||||
(strip-python2-variant python-gevent))))
|
(strip-python2-variant python-gevent))))
|
||||||
(package
|
(package
|
||||||
(inherit base)
|
(inherit base)
|
||||||
(arguments
|
|
||||||
(substitute-keyword-arguments (package-arguments base)
|
|
||||||
((#:phases phases)
|
|
||||||
`(modify-phases ,phases
|
|
||||||
(add-before 'check 'skip-timer-test
|
|
||||||
(lambda _
|
|
||||||
;; XXX: Skip 'TestTimerResolution', which appears to be
|
|
||||||
;; unreliable.
|
|
||||||
(substitute* "src/greentest/test__core_timer.py"
|
|
||||||
(("not greentest.RUNNING_ON_CI") "False"))
|
|
||||||
#t))))))
|
|
||||||
(native-inputs `(,@(package-native-inputs python-gevent)
|
(native-inputs `(,@(package-native-inputs python-gevent)
|
||||||
("python-mock" ,python2-mock))))))
|
("python-mock" ,python2-mock))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue