File nbsmoke-obs-nounraisableexception.patch of Package python-nbsmoke

Index: nbsmoke-0.6.0/nbsmoke/tests/__init__.py
===================================================================
--- nbsmoke-0.6.0.orig/nbsmoke/tests/__init__.py
+++ nbsmoke-0.6.0/nbsmoke/tests/__init__.py
@@ -60,12 +60,15 @@ VERBOSE = '-v'
 # Ignore deprecation warnings until the many deprecation warnings stop
 # coming from ipython and traitlets as used by nbconvert
 IGNORE_DEPRECATION_WARNINGS = '-W ignore::DeprecationWarning'
+# don't error on warnings about obs not closing sockets in time
+# https://docs.pytest.org/en/7.1.x/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions
+NO_UNRAISABLE_EXCEPTION = ['-p', 'no:unraisableexception']
 
 _all_args = [
     VERBOSE,
     WARNINGS_ARE_ERRORS,
     IGNORE_DEPRECATION_WARNINGS
-]
+] + NO_UNRAISABLE_EXCEPTION
 
 
 lint_args = ['--nbsmoke-lint'] + _all_args
openSUSE Build Service is sponsored by