Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:theMarix:py36
python-pre-commit
ignore-importlib-deprecations.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ignore-importlib-deprecations.patch of Package python-pre-commit
diff --git a/tests/conftest.py b/tests/conftest.py index f38f969..44e922f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -26,10 +26,17 @@ def no_warnings(recwarn): for warning in recwarn: # pragma: no cover message = str(warning.message) # ImportWarning: Not importing directory '...' missing __init__(.py) + print(type(warning.message)) + print(message) + print(isinstance(warning.message, DeprecationWarning)) + print('_text is deprecated. Use files() instead' in message) if not ( isinstance(warning.message, ImportWarning) and message.startswith('Not importing directory ') and ' missing __init__' in message + ) and not ( + isinstance(warning.message, DeprecationWarning) and + '_text is deprecated. Use files() instead' in message ): warnings.append( f'{warning.filename}:{warning.lineno} {message}',
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor