wireshark/test/suite_dissectors
João Valverde 3128269aa0 Tests: Require pytest support and remove compatibility layer
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.
2023-05-10 18:53:31 +00:00
..
__init__.py
dissectorstest.py Tests: Require pytest support and remove compatibility layer 2023-05-10 18:53:31 +00:00
group_asterix.py asterix: output format fix 2022-01-23 08:45:04 +00:00