-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.1: pytest is failing in repoze/tm/tests.py::TestMakeTM::test_make_tm_withveto
unit
#8
Comments
Hmm, I have a PR (#10) which converts |
Just tested that PR with all master commits and pytest executed without any paraameters cannot find units. + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-repoze-tm2-2.1-9.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-repoze-tm2-2.1-9.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/repoze.tm2-2.1
plugins: mock-3.7.0
collected 0 items
========================================================================== no tests ran in 0.02s =========================================================================== With additionall parameters output is 100% clean + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-repoze-tm2-2.1-9.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-repoze-tm2-2.1-9.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra --import-mode=importlib repoze/tm/tests.py
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/repoze.tm2-2.1
plugins: mock-3.7.0
collected 26 items
repoze/tm/tests.py .......................... [100%]
=========================================================================== 26 passed in 10.55s ============================================================================ It woud be good to add those settings in pytest.ini. |
Coverity passes as well + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-repoze-tm2-2.1-9.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-repoze-tm2-2.1-9.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra --import-mode=importlib repoze/tm/tests.py --cov
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/repoze.tm2-2.1
plugins: mock-3.7.0, cov-3.0.0
collected 26 items
repoze/tm/tests.py .......................... [100%]
---------- coverage: platform linux, python 3.8.13-final-0 -----------
Name Stmts Miss Cover
-------------------------------------------------------------------------------------------------------------------------------------------------
/home/tkloczko/rpmbuild/BUILDROOT/python-repoze-tm2-2.1-9.fc35.x86_64/usr/lib/python3.8/site-packages/repoze/tm/__init__.py 101 0 100%
repoze/tm/__init__.py 101 83 18%
repoze/tm/tests.py 224 0 100%
-------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL 426 83 81%
============================================================================ 26 passed in 0.31s ============================================================================ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to package 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
Here is pytest output:
The text was updated successfully, but these errors were encountered: