Skip to content

Fix pytest warnings #201

@fellen31

Description

@fellen31

These warnings when you run pytest are a bit distracting. Perhaps we can solve them?

===================================== 172 passed, 26 warnings in 3.66s =====================================
--- Logging error ---
Traceback (most recent call last):
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/logging/__init__.py", line 1154, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/multiprocessing/util.py", line 399, in _exit_function
    info('process shutting down')
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/multiprocessing/util.py", line 55, in info
    _logger.log(INFO, msg, *args, stacklevel=2)
Message: 'process shutting down'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/logging/__init__.py", line 1154, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/multiprocessing/util.py", line 399, in _exit_function
    info('process shutting down')
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/multiprocessing/util.py", line 55, in info
    _logger.log(INFO, msg, *args, stacklevel=2)
Message: 'process shutting down'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/logging/__init__.py", line 1154, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.
Call stack:
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/multiprocessing/util.py", line 399, in _exit_function
    info('process shutting down')
  File "/home/felix/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/lib/python3.13/multiprocessing/util.py", line 55, in info
    _logger.log(INFO, msg, *args, stacklevel=2)
Message: 'process shutting down'
Arguments: ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions