Skip to content
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

pyfuse3 tests fail with pytest>=6.0.0 #27

Closed
mucamaca opened this issue Oct 9, 2020 · 2 comments
Closed

pyfuse3 tests fail with pytest>=6.0.0 #27

mucamaca opened this issue Oct 9, 2020 · 2 comments

Comments

@mucamaca
Copy link
Contributor

mucamaca commented Oct 9, 2020

All tests fail with AttributeError because catch_log_handler was removed in a pytest pull request prior to their 6.0.0 release.

output of python3 -m pytest test/ with pyfuse 3.1.1 and pytest 6.1.0

@ThomasWaldmann
Copy link
Collaborator

from changelog:

The item.catch_log_handler and item.catch_log_handlers attributes, set by the logging plugin and never meant to be public, are no longer available.

The deprecated --no-print-logs option and log_print ini option are removed. Use --show-capture instead.

@ThomasWaldmann
Copy link
Collaborator

@Nikratio Thanks for fixing! Are you working on a llfuse port of this change, or shall I try?

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Mar 16, 2021
https://build.opensuse.org/request/show/879272
by user mcepl + RBrownSUSE
- Add fix_catch_log_handler.patch to make tests compatible with
  pytest >= 6.0.0, which removed never documented attribute
  .catch_log_handler of log item (gh#libfuse/pyfuse3#27).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants