reconnect moved files to git repo

This commit is contained in:
root
2025-08-01 04:33:03 -04:00
commit 5d3c35492d
23190 changed files with 4750716 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
import contextlib
import pytest
def pytest_error_str(error):
"""Different for different versions of Pytest"""
try:
return str(error.value)
except AttributeError:
return str(error)
def pytest_warning_messages(warnings):
"""Get the warning messages for captured warnings"""
return [str(w.message) for w in warnings.list]
@contextlib.contextmanager
def raises(exception):
"""Allows context managers for catching NO errors"""
if exception is None:
yield None
else:
with pytest.raises(exception) as e:
yield e