3128269aa0
Remove the pytest compatibility layer and require the real thing. Fix running tests with pytest and Python 3.11+. Pytest strongly favors using fixtures instead of setup/teardown methods so use that. This fixes the test suite with pytest and Python 3.11 and has the added benefit of removing the dependency on a private unittest property. We remove the dedicated log file code in SubprocessTestCase and just write to standard out. This presumes to leverage the pytest logging features, such as writing to a log file. To make the system more useful we should probably rely on logging calls instead of writing to stdout. The teardown log file cleanup logic and filename_from_id() method are replaced with pytest fixtures and native temporary path support. They are cleaner to use and do not require messy teadown logic. The temporary files are created in the system temporary directory. By default the last three runs are kept. More work is needed to complete remove the unittest module dependency. Fixes #18740. |
||
---|---|---|
.. | ||
__init__.py | ||
dissectorstest.py | ||
group_asterix.py |