Files
pysim/tests/unittests
Eric Wild 41e0d532f0 tests: stop test_log from leaking the print callback
PySimLogger.setup() installs a process-global print callback.
PySimLogger_Test sets one, a helper that asserts the message equals a global
expected_message, and never removes it, so from the moment test_log runs,
every PySimLogger message emitted anywhere in the process is checked against
whatever string that global happens to hold.

Fortunately unittest discovery runs modules in sorted order, and today
the PySimLogger users that log during tests all sort before test_log, so
this only breaks as soon as I try to add tests, just like anything else
breaks as soon as I try to use it.

Change-Id: I481e2c443fe0f412380b0f1acf6da5971ffca147
2026-09-07 19:51:23 +02:00
..
2026-06-21 03:30:02 +07:00
2024-09-03 21:57:47 +02:00
2024-09-03 21:57:47 +02:00
2024-09-03 21:57:47 +02:00
2026-06-21 03:30:02 +07:00
2024-09-03 21:57:47 +02:00
2024-09-03 21:57:47 +02:00