mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-sentry-sdk: Fix build.
* gnu/packages/python-xyz.scm (python-sentry-sdk)[arguments]<#:phases>: Add fix-test phase. Skip test_threading and test_transport test. Change-Id: Iee8e3909d8e581eb6fbe5e45a103645409094888
This commit is contained in:
parent
e1143622ed
commit
65892d9f20
1 changed files with 14 additions and 1 deletions
|
@ -15007,6 +15007,14 @@ you do not want to store entirely on disk or on memory.")
|
|||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'fix-test
|
||||
;; See https://github.com/getsentry/sentry-python/pull/2712
|
||||
(lambda _
|
||||
(substitute* "tests/__init__.py"
|
||||
(("import pytest")
|
||||
"import warnings")
|
||||
(("pytest.warns\\(None\\)")
|
||||
"warnings.catch_warnings(record=True)"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
|
@ -15061,7 +15069,12 @@ you do not want to store entirely on disk or on memory.")
|
|||
" and not test_finds_transaction_when_descendent_span_is_on_scope"
|
||||
" and not test_finds_orphan_span_on_scope"
|
||||
" and not test_finds_non_orphan_span_on_scope"
|
||||
" and not test_circular_references"))))))))
|
||||
" and not test_circular_references"
|
||||
|
||||
;; AttributeError: module 'py' has no attribute 'process'
|
||||
;; See <https://github.com/pytest-dev/pytest-forked/issues/88>.
|
||||
" and not test_threading"
|
||||
" and not test_transport"))))))))
|
||||
(native-inputs
|
||||
(list python-django
|
||||
python-executing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue