Closed
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.40.0
Steps to Reproduce
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
- because I'm calling
build
with--no-isolation
I'm using during all processes only locally installed modules - install .whl file in </install/prefix> using 'installer` module
- run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
- build is performed in env which is
cut off from access to the public network
(pytest is executed with-m "not network"
)
Expected Result
pytest should not fail
Actual Result
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sentry-1.40.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sentry-1.40.0-2.fc35.x86_64/usr/
lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
ImportError while loading conftest '/home/tkloczko/rpmbuild/BUILD/sentry-python-1.40.0/tests/conftest.py'.
tests/__init__.py:12: in <module>
_warning_recorder_mgr = pytest.warns(None)
E pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
E See https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests for alternatives in common use cases.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status