-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
testinfra (1.4.1) incompatible with py.test (3.0.2) (?) #125
Comments
Thanks for reporting. Seems that pytest want bytes instead of unicode string, this patch should fix the issue
|
Related to pytest-dev/pytest#1857 |
Opened pytest-dev/pytest#1905 |
@philpep Could we pin testinfra to a known working version of pytest? I ended up getting a bug report for this issue too, simply b/c molecule installs testinfra as a dependency. However, testinfra pulls the most current version of pytest. Could we pin to a known good working version of pytest, this way, when we install a particular version of pytest, it's known to have been tested against locked deps? |
@retr0h agree, was planned but I forget and was afk for some time, I release a fix ASAP. This will be fixed in pytest 3.0.3 btw |
Fixed in 1.4.2 |
@retr0h (you mean 3.0.1 ?) I prefer to not pin exactly to a specific version, for several reasons (security, consistency of the whole dependency graph). But it could surely add something like |
I am fine with what you did. Mostly was hoping to prevent breakage in the future. However, I get your points. |
But except this one, regressions are very rare with pytest and they have deprecation warnings, so I think it's also ok to not pin pytest. |
when upgrading to the latest version of testinfra with the lastest version of py.test (see above) it seems parametrization is broken:
testinfra test.py
when downgrading py.test to 3.0.1 everything works fine
when parameters are left away it will also work:
we could reproduce the issue on the following os using native python (python2) with testrinfra installed via pip:
The text was updated successfully, but these errors were encountered: