question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.11.2: pytest is failing

See original GitHub issue

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 --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>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
adferrandcommented, Aug 11, 2022

Hello @kloczek, sorry for the late reply. I have been quite busy recently, giving me very little time to my open-source projects. I will come back to by the next week on this subject.

0reactions
kloczekcommented, Oct 26, 2022

This is because some providers in Lexicon require optional dependencies that are installed only when Lexicon is installed with the full extra. The light testenv replicate this state, by installing Lexicon without the extra, and running the pytest suite with an extra custom flag, --xfail-providers-with-missing-deps which makes pytest expect the tests for providers with optional dependencies (not installed in this case) to fail.

If it is the reason (wil ltest that) those options should be added to pytest.ini

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test failures with Python 3.11.0b4 · Issue #10131 · pytest-dev ...
We have updated Python from 3.11. 0b3 to 3.11. 0b4 in Fedora Linux 37 and we see some test failures of pytest 7.1....
Read more >
Python unittests are broken with python 3.11 - wireshark - GitLab
Most of our pytest unittests are broken with Python 3.11. They depended on an undocumented private property that was removed in Python 3.11 ......
Read more >
Changelog — pytest documentation
issue #7758: Fixed an issue where some files in packages are getting lost from --lf even though they contain tests that failed. Regressed...
Read more >
unittest — Unit testing framework — Python 3.11.1 ...
pytest. Third-party unittest framework with a lighter-weight syntax for writing ... Output is echoed normally on test fail or error and is added...
Read more >
pytest-xdist - PyPI
The pytest-xdist plugin extends pytest with new test execution modes, the most used being distributing tests across multiple CPUs to speed up test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found