[Debian-med-packaging] Bug#1091403: brian FTBFS with Python 3.13 as default

Stefano Rivera stefanor at debian.org
Wed Dec 25 17:01:37 GMT 2024


Source: brian
Version: 2.7.1+ds-2
Severity: normal
User: debian-python at lists.debian.org
Usertags: python3.13-default

This package failed build from source when test-built against a version of
python3-defaults that has 3.13 as the default Python 3 version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:

# FIXME: May be the deleted tests should be provided in final binary package!
# Effectively running the test suite brian2.test() per upstream doc.
set -e \
; cd /<<PKGBUILDDIR>>/build \
; echo "I: Running Brian unittests using python3.13" \
; export PYTHONPATH="$( echo /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/*-packages )" \
; python3.13 -c 'import brian2;exit(not brian2.test())' \
; rm -rvf "${PYTHONPATH}/brian2/tests/.pytest_cache/"
I: Running Brian unittests using python3.13
Running tests in /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2 for targets numpy, cython (excluding long tests)
Running Brian version 2.7.1+ds from '/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2'
Testing codegen-independent code
Resetting to default preferences

Running doctests
.F.....WARNING    The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.
The object was created here (most recent call only):
  File '<doctest brian2.core.variables.linked_var[1]>', line 1, in <module>
    G1 = NeuronGroup(10, 'dv/dt = -v / (10*ms) : volt') [brian2.core.base.unused_brian_object]
WARNING    The object 'neurongroup_1' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.
The object was created here (most recent call only):
  File '<doctest brian2.core.variables.linked_var[2]>', line 1, in <module>
    G2 = NeuronGroup(10, 'v : volt (linked)') [brian2.core.base.unused_brian_object]
................WARNING    The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.
The object was created here (most recent call only):
  File '<doctest brian2.synapses.synapses.Synapses.connect[2]>', line 1, in <module>
    G = NeuronGroup(10, 'dv/dt = -v / tau : 1', threshold='v>1', reset='v=0') [brian2.core.base.unused_brian_object]
WARNING    The object 'synapses' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.
The object was created here (most recent call only):
  File '<doctest brian2.synapses.synapses.Synapses.connect[3]>', line 1, in <module>
    S = Synapses(G, G, 'w:1', on_pre='v+=w') [brian2.core.base.unused_brian_object]
...................                               [100%]
=================================== FAILURES ===================================
______________ [doctest] brian2.codegen.optimisation.reduced_node ______________
438 terms : list
439     AST nodes.
440 op : AST node
441     Could be `ast.Mult` or `ast.Add`.
442 
443 Examples
444 --------
445 >>> import ast
446 >>> nodes = [ast.Name(id='x'), ast.Name(id='y'), ast.Name(id='z')]
447 >>> ast.dump(reduced_node(nodes, ast.Mult), annotate_fields=False)
Expected:
    "BinOp(BinOp(Name('x'), Mult(), Name('y')), Mult(), Name('z'))"
Got:
    "BinOp(BinOp(Name('x', Load()), Mult(), Name('y', Load())), Mult(), Name('z', Load()))"

/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/codegen/optimisation.py:447: DocTestFailure
=============================== warnings summary ===============================
../debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
  see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
    def pytest_ignore_collect(path, config):

../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: timeout
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED ../debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/codegen/optimisation.py::brian2.codegen.optimisation.reduced_node
1 failed, 41 passed, 2 warnings in 12.98s
Running tests that do not use code generation
..................................................s..................... [ 32%]
........................................................................ [ 64%]
........................................................................ [ 97%]
......                                                                   [100%]
=============================== warnings summary ===============================
../debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
  see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
    def pytest_ignore_collect(path, config):

../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: timeout
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

test_parsing.py::test_substitute_abstract_code_functions
test_parsing.py::test_substitute_abstract_code_functions
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/parsing/functions.py:145: DeprecationWarning: Call.__init__ got an unexpected keyword argument 'starargs'. Support for arbitrary keyword arguments is deprecated and will be removed in Python 3.15.
    return ast.Call(

test_parsing.py::test_substitute_abstract_code_functions
test_parsing.py::test_substitute_abstract_code_functions
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/parsing/functions.py:145: DeprecationWarning: Call.__init__ got an unexpected keyword argument 'kwargs'. Support for arbitrary keyword arguments is deprecated and will be removed in Python 3.15.
    return ast.Call(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
221 passed, 1 skipped, 58 deselected, 6 warnings in 74.81s (0:01:14)
Running tests for target numpy:
.....s....--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
....--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
.......--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'synapses' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
...--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'synapses_2' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
.--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'synapses_2' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
...........                                     [100%]
=============================== warnings summary ===============================
../debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
  see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
    def pytest_ignore_collect(path, config):

../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: timeout
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

test_complex_examples.py::test_cuba
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput_refractory
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/parsing/rendering.py:105: DeprecationWarning: Name.__init__ missing 1 required positional argument: 'id'. This will become an error in Python 3.15.
    vectorisation_idx = ast.Name()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
35 passed, 1 skipped, 244 deselected, 9 warnings in 24.07s
Running tests for target cython:
.....s...............--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'synapses' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
...--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'synapses_2' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
.--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'neurongroup' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "<string>", line 1, in <module>
    import brian2;exit(not brian2.test())
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/tests/__init__.py", line 383, in run
    pytest.main(argv + additional_args, plugins=[pref_plugin]) == 0
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 244, in call_and_report
    report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 156, in _multicall
    teardown[0].send(outcome)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py", line 130, in pytest_runtest_makereport
    reinit_and_delete()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 764, in reinit_and_delete
    reinit_devices()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/devices/device.py", line 755, in reinit_devices
    restore_initial_state()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/only.py", line 75, in restore_initial_state
    gc.collect()
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/core/base.py", line 190, in __del__
    logger.warn(
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 490, in warn
    self._log("WARNING", msg, name_suffix, once)
  File "/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/utils/logger.py", line 424, in _log
    the_logger.log(LOG_LEVELS[log_level], msg)
Message: "The object 'synapses_2' is getting deleted, but was never included in a network. This probably means that you did not store the object reference in a variable, or that the variable was not used to construct the network.\nThe object was created here (most recent call only):\n  File '/usr/lib/python3/dist-packages/_pytest/python.py', line 159, in pytest_pyfunc_call\n    result = testfunction(**testargs)"
Arguments: ()
...........                                     [100%]
=============================== warnings summary ===============================
../debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/conftest.py:17: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
  see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
    def pytest_ignore_collect(path, config):

../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441
  /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: timeout
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

test_complex_examples.py::test_cuba
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput
test_poissoninput.py::test_poissoninput_refractory
  /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.13/dist-packages/brian2/parsing/rendering.py:105: DeprecationWarning: Name.__init__ missing 1 required positional argument: 'id'. This will become an error in Python 3.15.
    vectorisation_idx = ast.Name()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
35 passed, 1 skipped, 244 deselected, 9 warnings in 272.84s (0:04:32)
ERROR: 1/4 test suite(s) did not complete successfully (see above).
make[1]: *** [debian/rules:59: override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:32: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-12-25T15:45:21Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/1123347/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as default, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano



More information about the Debian-med-packaging mailing list