diff options
author | Rutger Helling <rhelling@mykolab.com> | 2018-12-11 11:37:28 +0100 |
---|---|---|
committer | Rutger Helling <rhelling@mykolab.com> | 2018-12-11 11:47:34 +0100 |
commit | 799f5d0df023480f5514821cf011ec6ca1224237 (patch) | |
tree | c20f4d6bd0a8a2b55e7a50ebb79511e675d5554f /gnu/packages/python.scm | |
parent | 435d8a83b5b1929ddf2d56e0e38ba6c5e84d014c (diff) | |
download | patches-799f5d0df023480f5514821cf011ec6ca1224237.tar patches-799f5d0df023480f5514821cf011ec6ca1224237.tar.gz |
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.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r-- | gnu/packages/python.scm | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 23b980ec32..20b07d3e27 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9226,6 +9226,13 @@ graphviz.") (setenv "CPATH" (string-append greenlet "/" python))))) #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 (lambda _ ;; Make sure the build directory is on PYTHONPATH. @@ -9266,17 +9273,6 @@ to provide a high-level synchronous API on top of the libev event loop.") (strip-python2-variant python-gevent)))) (package (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) ("python-mock" ,python2-mock)))))) |