Created
November 15, 2024 03:00
-
-
Save mweinelt/843a1c04973a0ba82c01d09f26167d6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sourcing python-remove-tests-dir-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing python-remove-bin-bytecode-hook.sh | |
Sourcing pypa-build-hook | |
Using pypaBuildPhase | |
Sourcing python-runtime-deps-check-hook | |
Using pythonRuntimeDepsCheckHook | |
Sourcing pypa-install-hook | |
Using pypaInstallPhase | |
Sourcing python-imports-check-hook.sh | |
Using pythonImportsCheckPhase | |
Sourcing python-namespaces-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing pytest-check-hook | |
Using pytestCheckPhase | |
Running phase: unpackPhase | |
unpacking source archive /nix/store/cqqb61qnjb6pyjx45kdwmkc2dssdyh7s-flask_sqlalchemy-3.1.1.tar.gz | |
source root is flask_sqlalchemy-3.1.1 | |
setting SOURCE_DATE_EPOCH to timestamp 1694468089 of file flask_sqlalchemy-3.1.1/tox.ini | |
Running phase: patchPhase | |
Running phase: updateAutotoolsGnuConfigScriptsPhase | |
Running phase: configurePhase | |
no configure script, doing nothing | |
Running phase: buildPhase | |
Executing pypaBuildPhase | |
Creating a wheel... | |
pypa build flags: --no-isolation --outdir dist/ --wheel | |
* Getting build dependencies for wheel... | |
* Building wheel... | |
Successfully built flask_sqlalchemy-3.1.1-py3-none-any.whl | |
Finished creating a wheel... | |
Finished executing pypaBuildPhase | |
Running phase: pythonRuntimeDepsCheckHook | |
Executing pythonRuntimeDepsCheck | |
Checking runtime dependencies for flask_sqlalchemy-3.1.1-py3-none-any.whl | |
Finished executing pythonRuntimeDepsCheck | |
Running phase: installPhase | |
Executing pypaInstallPhase | |
Successfully installed flask_sqlalchemy-3.1.1-py3-none-any.whl | |
Finished executing pypaInstallPhase | |
Running phase: pythonOutputDistPhase | |
Executing pythonOutputDistPhase | |
Finished executing pythonOutputDistPhase | |
Running phase: fixupPhase | |
shrinking RPATHs of ELF executables and libraries in /nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1 | |
checking for references to /build/ in /nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1... | |
patching script interpreter paths in /nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1 | |
stripping (with command strip and flags -S -p) in /nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1/lib | |
shrinking RPATHs of ELF executables and libraries in /nix/store/xccchy9vaiqb53xzm9nl5vrfbvawqd7s-python3.13-flask-sqlalchemy-3.1.1-dist | |
checking for references to /build/ in /nix/store/xccchy9vaiqb53xzm9nl5vrfbvawqd7s-python3.13-flask-sqlalchemy-3.1.1-dist... | |
patching script interpreter paths in /nix/store/xccchy9vaiqb53xzm9nl5vrfbvawqd7s-python3.13-flask-sqlalchemy-3.1.1-dist | |
Executing pythonRemoveTestsDir | |
Finished executing pythonRemoveTestsDir | |
Running phase: installCheckPhase | |
no Makefile or custom installCheckPhase, doing nothing | |
Running phase: pythonCatchConflictsPhase | |
Running phase: pythonRemoveBinBytecodePhase | |
Running phase: pythonImportsCheckPhase | |
Executing pythonImportsCheckPhase | |
Check whether the following modules can be imported: flask_sqlalchemy | |
Running phase: pytestCheckPhase | |
Executing pytestCheckPhase | |
============================= test session starts ============================== | |
platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 | |
rootdir: /build/flask_sqlalchemy-3.1.1 | |
configfile: pyproject.toml | |
testpaths: tests | |
collected 452 items | |
tests/test_cli.py ....E [ 1%] | |
tests/test_engine.py ................................................... [ 12%] | |
.........F.......E...... [ 17%] | |
tests/test_extension_object.py ..E..F.F.F [ 19%] | |
tests/test_legacy_query.py .F.F.F..E..F..E...F....... [ 25%] | |
tests/test_metadata.py ...........................E. [ 31%] | |
tests/test_model.py .....F...F.F.F..F..F..F...F.... [ 38%] | |
tests/test_model_bind.py ...E............................F.F [ 46%] | |
tests/test_model_name.py ............................................... [ 56%] | |
..................................... [ 65%] | |
tests/test_pagination.py ...............................E...E....E..F..F [ 75%] | |
....E...E....E...E....E....E.. [ 82%] | |
tests/test_record_queries.py F [ 82%] | |
tests/test_session.py ......................F.F.F.F. [ 88%] | |
tests/test_table_bind.py ...E................ [ 93%] | |
tests/test_track_modifications.py .F..F [ 94%] | |
tests/test_view_query.py .F.F..E..F..F..F......E.. [100%] | |
==================================== ERRORS ==================================== | |
__________________ ERROR at setup of test_shell_context[db4] ___________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff4735da0> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4798a90> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/schema.py", line 5497, in __init__ | |
E collections.defaultdict(list) | |
E ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4798a90> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_________ ERROR at setup of test_sqlite_memory_defaults[model_class3] __________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44cc860> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4798d60> | |
E | |
E Traceback (most recent call last): | |
E File "<werkzeug routing>", line 0, in <module> | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4798d60> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
____________________ ERROR at setup of test_get_or_404[db2] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44b7240> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff479bf10> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/properties.py", line 566, in __init__ | |
E for i, attr in enumerate(attr_opts._fields) | |
E ~~~~~~~~~^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff479bf10> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ ERROR at setup of test_first_or_404[db3] ___________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44dde40> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e0130> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/typing.py", line 131, in de_stringify_annotation | |
E def de_stringify_annotation( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e0130> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
____________________ ERROR at setup of test_one_or_404[db4] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44c9440> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4372890> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/base.py", line 1573, in __len__ | |
E def __len__(self) -> int: | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4372890> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________ ERROR at teardown of test_create_key_spec[bind_key1] _____________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42e18a0> | |
when = 'teardown' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:97: in pytest_runtest_teardown | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:100: in pytest_runtest_teardown | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff42e53f0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_callers.py", line 73, in _multicall | |
E args = [caller_kwargs[argname] for argname in hook_impl.argnames] | |
E ~~~~~~~~~~~~~^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff42e53f0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_________________ ERROR at setup of test_bind_key_default[db3] _________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42bf240> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff42e53f0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/ast.py", line 301, in iter_child_nodes | |
E yield item | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff42e53f0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________ ERROR at setup of test_paginate[db4] _____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3fc7920> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3fec130> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/mapper.py", line 3965, in cascade_iterator | |
E [(deque(state.mapper._props.values()), prp, state, state.dict)] | |
E ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3fec130> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ ERROR at setup of test_paginate_qs[db3] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3f57d80> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff423ac50> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/engine/result.py", line 551, in _allrows | |
E made_rows = [make_row(row) for row in rows] | |
E ~~~~~~~~^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff423ac50> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ ERROR at setup of test_paginate_max[db3] ___________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3f556c0> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43726b0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/compiler.py", line 1881, in construct_params | |
E pd[escaped_name] = params[bindparam.key] | |
E ~~^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43726b0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________ ERROR at setup of test_no_count[db4] _____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44e25c0> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff42e5a80> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/mapper.py", line 3916, in cascade_iterator | |
E def cascade_iterator( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff42e5a80> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_______________ ERROR at setup of test_error_out[Model-None--1] ________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff478b9c0> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4370400> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/compiler.py", line 2338, in <genexpr> | |
E return row_fn( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4370400> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
________________ ERROR at setup of test_error_out[db2-abc-None] ________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff4368180> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4332980> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/mapper.py", line 3965, in cascade_iterator | |
E [(deque(state.mapper._props.values()), prp, state, state.dict)] | |
E ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4332980> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
________________ ERROR at setup of test_error_out[db3-abc-None] ________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff436a5c0> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4372d40> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/compiler.py", line 2338, in <genexpr> | |
E return row_fn( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4372d40> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
________________ ERROR at setup of test_error_out[db4-None-abc] ________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44b7380> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e1d50> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/mapper.py", line 3965, in cascade_iterator | |
E [(deque(state.mapper._props.values()), prp, state, state.dict)] | |
E ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e1d50> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ ERROR at setup of test_no_items_404[db2] ___________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44c8a40> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3fecd60> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/compiler.py", line 7171, in visit_VARCHAR | |
E def visit_VARCHAR(self, type_, **kw): | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3fecd60> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_________________ ERROR at setup of test_bind_key_default[db3] _________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3ef8f40> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43ab100> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/engine/create.py", line 92, in create_engine | |
E @util.deprecated_params( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43ab100> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ ERROR at setup of test_first_or_404[db1] ___________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44deb60> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3fec7c0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py", line 684, in _cls_attr_resolver | |
E def _cls_attr_resolver( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3fec7c0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
______________ ERROR at setup of test_view_get_or_404_typed[db2] _______________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3f57420> | |
when = 'setup' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4333880> | |
E | |
E Traceback (most recent call last): | |
E File "<string>", line 0, in <module> | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4333880> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
=================================== FAILURES =================================== | |
_____________________ test_sqlite_driver_level_uri[Model] ______________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff478b1a0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff479a890> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/collections/__init__.py", line 458, in _replace | |
E result = self._make(_map(kwds.pop, field_names, self)) | |
E ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff479a890> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
________________________ test_get_or_404_kwargs[Model] _________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff47a2ca0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4370b80> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/_collections.py", line 115, in merge_lists_w_ordering | |
E current, other = iter(a), iter(b) | |
E ~~~~^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4370b80> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________ test_get_or_404_kwargs[model_class2] _____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44c8c20> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4799030> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/ddl.py", line 894, in visit_metadata | |
E tables = list(metadata.tables.values()) | |
E ~~~~~~~~~~~~~~~~~~~~~~^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4799030> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________ test_get_or_404_kwargs[model_class4] _____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44cf9c0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e31f0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/_collections.py", line 115, in merge_lists_w_ordering | |
E current, other = iter(a), iter(b) | |
E ~~~~^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e31f0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________________ test_get_or_404[db1] _____________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff47a37e0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43aad40> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 367, in __init__ | |
E def __init__(self, dict=None): | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43aad40> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________________ test_get_or_404[db3] _____________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff4a3cd60> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff46d3790> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/crud.py", line 839, in _append_param_parameter | |
E accumulated_bind_names: Set[str] = set() | |
E ~~~^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff46d3790> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________________ test_first_or_404[Model] ___________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff47298a0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff479bd30> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/engine/result.py", line 442, in _row_getter | |
E @HasMemoized_ro_memoized_attribute | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff479bd30> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________________ test_one_or_404[db1] _____________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff46c8cc0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43732e0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/base.py", line 148, in __init__ | |
E self._empty_listeners = self._empty_listener_reg[instance_cls] | |
E ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 415, in __getitem__ | |
E return self.data[ref(key)] | |
E ~~~~~~~~~^^^^^^^^^^ | |
E KeyError: <weakref at 0x7ffff43de0c0; to 'type' at 0x11f7600 (Session)> | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/attr.py", line 213, in update_subclass | |
E self._clslevel[target] = collections.deque() | |
E ~~~~~~~~~~~~~~~~~^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43732e0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
______________________________ test_paginate[db3] ______________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44cafc0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e06d0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/mapper.py", line 2491, in _is_orphan | |
E for key, cls in mapper._delete_orphans: | |
E ^^^^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e06d0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
________________________ test_declarativebasenometa_2x _________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff43ed440> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43734c0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/langhelpers.py", line 443, in get_cls_kwargs | |
E _set = set() | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43734c0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_______________________ test_declaredattr[model_class1] ________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44c8d60> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff479ba60> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/elements.py", line 1496, in __getattr__ | |
E return getattr(self.comparator, key) | |
E AttributeError: 'Comparator' object has no attribute '_slots_dispatch' | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/elements.py", line 1498, in __getattr__ | |
E raise AttributeError( | |
E ~~~~~~~~~~~~~~^ | |
E "Neither %r object nor %r object has an attribute %r" | |
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
E ...<4 lines>... | |
E ) | |
E ^ | |
E ) from err | |
E ^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff479ba60> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_______________________ test_declaredattr[model_class3] ________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff4264400> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4371030> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/loading.py", line 185, in instances | |
E _no_unique | |
E ...<12 lines>... | |
E ) | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4371030> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
__________________________ test_abstractmodel[Model] ___________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff425cfe0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff46d3100> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/loading.py", line 277, in instances | |
E result._attributes = result._attributes.union( | |
E ~~~~~~~~~~~~~~~~~~~~~~~~^ | |
E dict(filtered=filtered, is_single_entity=single_entity) | |
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
E ) | |
E ^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff46d3100> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_______________________ test_abstractmodel[model_class3] _______________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44cf6a0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e3790> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/registry.py", line 333, in base_listen | |
E def base_listen( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e3790> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
________________________ test_mixinmodel[model_class1] _________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42be480> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff42e48b0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/schema.py", line 3594, in _maybe_wrap_callable | |
E argspec = util.get_callable_argspec(fn, no_self=True) | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/langhelpers.py", line 500, in get_callable_argspec | |
E raise TypeError("Can't inspect builtin: %s" % fn) | |
E TypeError: Can't inspect builtin: <built-in method utcnow of type object at 0x7ffff68e39c0> | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/langhelpers.py", line 2028, in wrap_callable | |
E def wrap_callable(wrapper, fn): | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff42e48b0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
________________________ test_mixinmodel[model_class4] _________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44c9d00> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4370e50> | |
E | |
E Traceback (most recent call last): | |
E File "<string>", line 1, in <lambda> | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4370e50> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________________ test_model_repr[db3] _____________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff4369120> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff42e5300> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/base.py", line 148, in __init__ | |
E self._empty_listeners = self._empty_listener_reg[instance_cls] | |
E ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 415, in __getitem__ | |
E return self.data[ref(key)] | |
E ~~~~~~~~~^^^^^^^^^^ | |
E KeyError: <weakref at 0x7ffff40a1d50; to 'type' at 0x133a250 (Session)> | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 454, in __contains__ | |
E def __contains__(self, key): | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff42e5300> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________________ test_explicit_table[db2] ___________________________ | |
db = <SQLAlchemy> | |
def test_explicit_table(db: SQLAlchemy) -> None: | |
user_table = db.Table( | |
"user", | |
sa.Column("id", sa.Integer, primary_key=True), | |
bind_key="auth", | |
) | |
> class User(db.Model): | |
tests/test_model_bind.py:85: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1/lib/python3.13/site-packages/flask_sqlalchemy/model.py:124: in __init_subclass__ | |
super().__init_subclass__(**kwargs) | |
/nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1/lib/python3.13/site-packages/flask_sqlalchemy/model.py:214: in __init_subclass__ | |
super().__init_subclass__(**kwargs) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_api.py:617: in __init_subclass__ | |
super().__init_subclass__(**kw) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_api.py:836: in __init_subclass__ | |
_as_declarative(cls._sa_registry, cls, cls.__dict__) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:244: in _as_declarative | |
return _MapperConfig.setup_mapping(registry, cls, dict_, None, {}) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:325: in setup_mapping | |
return _ClassScanMapperConfig( | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:563: in __init__ | |
self._setup_dataclasses_transforms() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <sqlalchemy.orm.decl_base._ClassScanMapperConfig object at 0x7ffff4370f50> | |
def _setup_dataclasses_transforms(self) -> None: | |
dataclass_setup_arguments = self.dataclass_setup_arguments | |
if not dataclass_setup_arguments: | |
return | |
# can't use is_dataclass since it uses hasattr | |
if "__dataclass_fields__" in self.cls.__dict__: | |
raise exc.InvalidRequestError( | |
f"Class {self.cls} is already a dataclass; ensure that " | |
"base classes / decorator styles of establishing dataclasses " | |
"are not being mixed. " | |
"This can happen if a class that inherits from " | |
"'MappedAsDataclass', even indirectly, is been mapped with " | |
"'@registry.mapped_as_dataclass'" | |
) | |
# can't create a dataclass if __table__ is already there. This would | |
# fail an assertion when calling _get_arguments_for_make_dataclass: | |
# assert False, "Mapped[] received without a mapping declaration" | |
if "__table__" in self.cls.__dict__: | |
> raise exc.InvalidRequestError( | |
f"Class {self.cls} already defines a '__table__'. " | |
"ORM Annotated Dataclasses do not support a pre-existing " | |
"'__table__' element" | |
) | |
E sqlalchemy.exc.InvalidRequestError: Class <class 'test_model_bind.test_explicit_table.<locals>.User'> already defines a '__table__'. ORM Annotated Dataclasses do not support a pre-existing '__table__' element | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:1074: InvalidRequestError | |
___________________________ test_explicit_table[db4] ___________________________ | |
db = <SQLAlchemy> | |
def test_explicit_table(db: SQLAlchemy) -> None: | |
user_table = db.Table( | |
"user", | |
sa.Column("id", sa.Integer, primary_key=True), | |
bind_key="auth", | |
) | |
> class User(db.Model): | |
tests/test_model_bind.py:85: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1/lib/python3.13/site-packages/flask_sqlalchemy/model.py:124: in __init_subclass__ | |
super().__init_subclass__(**kwargs) | |
/nix/store/xrh08wzcbk8d0p2sz2w9d4g3vw0pzgv2-python3.13-flask-sqlalchemy-3.1.1/lib/python3.13/site-packages/flask_sqlalchemy/model.py:214: in __init_subclass__ | |
super().__init_subclass__(**kwargs) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_api.py:617: in __init_subclass__ | |
super().__init_subclass__(**kw) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_api.py:958: in __init_subclass__ | |
_as_declarative(cls._sa_registry, cls, cls.__dict__) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:244: in _as_declarative | |
return _MapperConfig.setup_mapping(registry, cls, dict_, None, {}) | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:325: in setup_mapping | |
return _ClassScanMapperConfig( | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:563: in __init__ | |
self._setup_dataclasses_transforms() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <sqlalchemy.orm.decl_base._ClassScanMapperConfig object at 0x7ffff4370e60> | |
def _setup_dataclasses_transforms(self) -> None: | |
dataclass_setup_arguments = self.dataclass_setup_arguments | |
if not dataclass_setup_arguments: | |
return | |
# can't use is_dataclass since it uses hasattr | |
if "__dataclass_fields__" in self.cls.__dict__: | |
raise exc.InvalidRequestError( | |
f"Class {self.cls} is already a dataclass; ensure that " | |
"base classes / decorator styles of establishing dataclasses " | |
"are not being mixed. " | |
"This can happen if a class that inherits from " | |
"'MappedAsDataclass', even indirectly, is been mapped with " | |
"'@registry.mapped_as_dataclass'" | |
) | |
# can't create a dataclass if __table__ is already there. This would | |
# fail an assertion when calling _get_arguments_for_make_dataclass: | |
# assert False, "Mapped[] received without a mapping declaration" | |
if "__table__" in self.cls.__dict__: | |
> raise exc.InvalidRequestError( | |
f"Class {self.cls} already defines a '__table__'. " | |
"ORM Annotated Dataclasses do not support a pre-existing " | |
"'__table__' element" | |
) | |
E sqlalchemy.exc.InvalidRequestError: Class <class 'test_model_bind.test_explicit_table.<locals>.User'> already defines a '__table__'. ORM Annotated Dataclasses do not support a pre-existing '__table__' element | |
/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/decl_base.py:1074: InvalidRequestError | |
___________________________ test_next_page_size[db1] ___________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44a2de0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4332110> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/state.py", line 201, in __init__ | |
E def __init__(self, obj: _O, manager: ClassManager[_O]): | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4332110> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________________ test_next_page_size[db4] ___________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42665c0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4331990> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/state.py", line 204, in __init__ | |
E self.obj = weakref.ref(obj, self._cleanup) | |
E ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4331990> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_______________________________ test_query_info ________________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42bd260> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff47989a0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/base.py", line 148, in __init__ | |
E self._empty_listeners = self._empty_listener_reg[instance_cls] | |
E ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 415, in __getitem__ | |
E return self.data[ref(key)] | |
E ~~~~~~~~~^^^^^^^^^^ | |
E KeyError: <weakref at 0x7ffff3dfbf10; to 'type' at 0x12230d0 (Session)> | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 454, in __contains__ | |
E def __contains__(self, key): | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff47989a0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ test_get_bind_inheritance[model_class2] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42e3e20> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e35b0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/_collections.py", line 115, in merge_lists_w_ordering | |
E current, other = iter(a), iter(b) | |
E ~~~~^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e35b0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ test_get_bind_inheritance[model_class4] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42d0540> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43334c0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/elements.py", line 1496, in __getattr__ | |
E return getattr(self.comparator, key) | |
E AttributeError: 'Comparator' object has no attribute '_slots_dispatch' | |
E | |
E The above exception was the direct cause of the following exception: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/attributes.py", line 472, in __getattr__ | |
E return getattr(self.comparator, key) | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/langhelpers.py", line 1328, in __getattr__ | |
E return self._fallback_getattr(key) | |
E ~~~~~~~~~~~~~~~~~~~~~~^^^^^ | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/properties.py", line 474, in _fallback_getattr | |
E return getattr(self.__clause_element__(), key) | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/elements.py", line 1498, in __getattr__ | |
E raise AttributeError( | |
E ...<6 lines>... | |
E ) from err | |
E AttributeError: Neither 'AnnotatedColumn' object nor 'Comparator' object has an attribute '_slots_dispatch' | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/attributes.py", line 474, in __getattr__ | |
E raise AttributeError( | |
E ~~~~~~~~~~~~~~^ | |
E "Neither %r object nor %r object associated with %s " | |
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
E ...<6 lines>... | |
E ) | |
E ^ | |
E ) from err | |
E ^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43334c0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ test_session_multiple_dbs[model_class1] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff42e1760> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff42e73d0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/elements.py", line 1496, in __getattr__ | |
E return getattr(self.comparator, key) | |
E AttributeError: 'Comparator' object has no attribute '_slots_dispatch' | |
E | |
E The above exception was the direct cause of the following exception: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/attributes.py", line 472, in __getattr__ | |
E return getattr(self.comparator, key) | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/util/langhelpers.py", line 1328, in __getattr__ | |
E return self._fallback_getattr(key) | |
E ~~~~~~~~~~~~~~~~~~~~~~^^^^^ | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/properties.py", line 474, in _fallback_getattr | |
E return getattr(self.__clause_element__(), key) | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/elements.py", line 1498, in __getattr__ | |
E raise AttributeError( | |
E ...<6 lines>... | |
E ) from err | |
E AttributeError: Neither 'AnnotatedColumn' object nor 'Comparator' object has an attribute '_slots_dispatch' | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/orm/attributes.py", line 478, in __getattr__ | |
E type(self).__name__, | |
E ^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff42e73d0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
___________________ test_session_multiple_dbs[model_class3] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3fafce0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3feeb60> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/schema.py", line 408, in _gen_cache_key | |
E def _gen_cache_key( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3feeb60> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
____________________ test_track_modifications[model_class1] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3f56ca0> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff4333f10> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/dml.py", line 220, in _make_extra_froms | |
E if not seen.intersection(item._cloned_set): | |
E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff4333f10> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
____________________ test_track_modifications[model_class4] ____________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3fc5080> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3fecd60> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 428, in __setitem__ | |
E self.data[ref(key, self._remove)] = value | |
E ~~~^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3fecd60> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
__________________________ test_view_get_or_404[db1] ___________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff44a1f80> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3d567a0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/typing.py", line 2366, in cast | |
E def cast(typ, val): | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3d567a0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
__________________________ test_view_get_or_404[db3] ___________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff4409120> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3d554e0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/sql/visitors.py", line 129, in _compiler_dispatch | |
E def _compiler_dispatch( | |
E | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3d554e0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
____________________________ test_first_or_404[db4] ____________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3f3d620> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e3d30> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/base.py", line 148, in __init__ | |
E self._empty_listeners = self._empty_listener_reg[instance_cls] | |
E ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 415, in __getitem__ | |
E return self.data[ref(key)] | |
E ~~~~~~~~~^^^^^^^^^^ | |
E KeyError: <weakref at 0x7ffff3dc5850; to 'type' at 0x124e6c0 (Session)> | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 428, in __setitem__ | |
E self.data[ref(key, self._remove)] = value | |
E ~~~^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e3d30> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
__________________________ test_view_one_or_404[db2] ___________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff3fc2020> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff43e2a70> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/base.py", line 148, in __init__ | |
E self._empty_listeners = self._empty_listener_reg[instance_cls] | |
E ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 415, in __getitem__ | |
E return self.data[ref(key)] | |
E ~~~~~~~~~^^^^^^^^^^ | |
E KeyError: <weakref at 0x7ffff3ddb920; to 'type' at 0x124ed50 (Session)> | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/attr.py", line 213, in update_subclass | |
E self._clslevel[target] = collections.deque() | |
E ~~~~~~~~~~~~~~~~~^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff43e2a70> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
_____________________________ test_paginate[Model] _____________________________ | |
cls = <class '_pytest.runner.CallInfo'> | |
func = <function call_and_report.<locals>.<lambda> at 0x7ffff425ed40> | |
when = 'call' | |
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) | |
@classmethod | |
def from_call( | |
cls, | |
func: Callable[[], TResult], | |
when: Literal["collect", "setup", "call", "teardown"], | |
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, | |
) -> CallInfo[TResult]: | |
"""Call func, wrapping the result in a CallInfo. | |
:param func: | |
The function to call. Called without arguments. | |
:type func: Callable[[], _pytest.runner.TResult] | |
:param when: | |
The phase in which the function is called. | |
:param reraise: | |
Exception or exceptions that shall propagate if raised by the | |
function, instead of being wrapped in the CallInfo. | |
""" | |
excinfo = None | |
start = timing.time() | |
precise_start = timing.perf_counter() | |
try: | |
> result: TResult | None = func() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:341: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/runner.py:242: in <lambda> | |
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_hooks.py:513: in __call__ | |
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
/nix/store/w91wlq864lgwj9r938gmf8czk5cwlqjy-python3.13-pluggy-1.5.0/lib/python3.13/site-packages/pluggy/_manager.py:120: in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:92: in pytest_runtest_call | |
yield from thread_exception_runtest_hook() | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook | |
yield | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call | |
yield from unraisable_exception_runtest_hook() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def unraisable_exception_runtest_hook() -> Generator[None]: | |
with catch_unraisable_exception() as cm: | |
try: | |
yield | |
finally: | |
if cm.unraisable: | |
if cm.unraisable.err_msg is not None: | |
err_msg = cm.unraisable.err_msg | |
else: | |
err_msg = "Exception ignored in" | |
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" | |
msg += "".join( | |
traceback.format_exception( | |
cm.unraisable.exc_type, | |
cm.unraisable.exc_value, | |
cm.unraisable.exc_traceback, | |
) | |
) | |
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) | |
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Connection object at 0x7ffff3fec7c0> | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/9q6cs27gcx2h27brmg7nb8xhbzj0zrnm-python3.13-sqlalchemy-2.0.36/lib/python3.13/site-packages/sqlalchemy/event/base.py", line 148, in __init__ | |
E self._empty_listeners = self._empty_listener_reg[instance_cls] | |
E ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 415, in __getitem__ | |
E return self.data[ref(key)] | |
E ~~~~~~~~~^^^^^^^^^^ | |
E KeyError: <weakref at 0x7ffff3e05ad0; to 'type' at 0x1429b20 (Session)> | |
E | |
E During handling of the above exception, another exception occurred: | |
E | |
E Traceback (most recent call last): | |
E File "/nix/store/0b83hlniyfbpha92k2j0w93mxdalv8kb-python3-3.13.0/lib/python3.13/weakref.py", line 428, in __setitem__ | |
E self.data[ref(key, self._remove)] = value | |
E ~~~^^^^^^^^^^^^^^^^^^^ | |
E ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff3fec7c0> | |
/nix/store/6wq270gc19f8p07jy7892r05avgwb3xz-python3.13-pytest-8.3.3/lib/python3.13/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning | |
=========================== short test summary info ============================ | |
FAILED tests/test_engine.py::test_sqlite_driver_level_uri[Model] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_extension_object.py::test_get_or_404_kwargs[Model] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_extension_object.py::test_get_or_404_kwargs[model_class2] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_extension_object.py::test_get_or_404_kwargs[model_class4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_legacy_query.py::test_get_or_404[db1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_legacy_query.py::test_get_or_404[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_legacy_query.py::test_first_or_404[Model] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_legacy_query.py::test_one_or_404[db1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_legacy_query.py::test_paginate[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_declarativebasenometa_2x - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_declaredattr[model_class1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_declaredattr[model_class3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_abstractmodel[Model] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_abstractmodel[model_class3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_mixinmodel[model_class1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_mixinmodel[model_class4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model.py::test_model_repr[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_model_bind.py::test_explicit_table[db2] - sqlalchemy.exc.InvalidRequestError: Class <class 'test_model_bind.test_expl... | |
FAILED tests/test_model_bind.py::test_explicit_table[db4] - sqlalchemy.exc.InvalidRequestError: Class <class 'test_model_bind.test_expl... | |
FAILED tests/test_pagination.py::test_next_page_size[db1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_pagination.py::test_next_page_size[db4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_record_queries.py::test_query_info - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_session.py::test_get_bind_inheritance[model_class2] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_session.py::test_get_bind_inheritance[model_class4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_session.py::test_session_multiple_dbs[model_class1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_session.py::test_session_multiple_dbs[model_class3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_track_modifications.py::test_track_modifications[model_class1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_track_modifications.py::test_track_modifications[model_class4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_view_query.py::test_view_get_or_404[db1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_view_query.py::test_view_get_or_404[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_view_query.py::test_first_or_404[db4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_view_query.py::test_view_one_or_404[db2] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
FAILED tests/test_view_query.py::test_paginate[Model] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_cli.py::test_shell_context[db4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_engine.py::test_sqlite_memory_defaults[model_class3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_extension_object.py::test_get_or_404[db2] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_legacy_query.py::test_first_or_404[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_legacy_query.py::test_one_or_404[db4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_metadata.py::test_create_key_spec[bind_key1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_model_bind.py::test_bind_key_default[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_paginate[db4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_paginate_qs[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_paginate_max[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_no_count[db4] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_error_out[Model-None--1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_error_out[db2-abc-None] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_error_out[db3-abc-None] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_error_out[db4-None-abc] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_pagination.py::test_no_items_404[db2] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_table_bind.py::test_bind_key_default[db3] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_view_query.py::test_first_or_404[db1] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
ERROR tests/test_view_query.py::test_view_get_or_404_typed[db2] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <sqlite3.Con... | |
================== 33 failed, 401 passed, 19 errors in 14.53s ================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment