-
Notifications
You must be signed in to change notification settings - Fork 518
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
6.0: pytest is failing #640
Comments
This comment was marked as outdated.
This comment was marked as outdated.
The problem you're running into is that there are no pytest unit tests in pyyaml- it uses its own bespoke test runner. See #588 for an attempt to wrap pytest's legacy test fixture in something that pytest can consume- some form of that will likely get merged for whatever our next release is. To get the tests to run today, just change your last step to run Since this is the current state of the world and fixes are already in-flight, closing this issue. |
Did you think about start using pytest? 🤔 [tkloczko@devel-g2v SPECS]$ grep ^%pytest python-* | wc -l; grep ^%tox python-* | wc -l; grep "package has no test suite" python-* | wc -l; ls -1 python-* | wc -l
910
1
16
952 My goal i to have 100% python modules tested using pytest. Why? two reasons:
Probably in longer term I would be able to provide above as CI to allow python modules developers asses exact impact in the python module code to show risk of introducing exact change on other modules which would be using future version of exact modulable. No other approach can provide env to make above happen .. this is why I've choose pytest 😋 |
Did you read my previous comment? |
I see only one comment. BTW part
Passing configuration params is working in case of pep517. %build
%pyproject_wheel -- \
-C=--global-option=--external \
-C=--global-option=--legacy \
%{nil} |
|
OK, I've los that part 😃 |
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
build
with--no-isolation
I'm using during all processes only locally installed modulesI cannot find what provides
data_filename
andcanonical_filename
fixtures and I'm aasuming that I still have some modules missing in my build env.May I ask for some hints about what I need to install?
The text was updated successfully, but these errors were encountered: