-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: move traceback cleanup to test method wrappers
Python 3.11 changed internal details that cleanup_traceback() relied on. Move the functionality to wrappers around actual test functions. This way, it's contained within test class, and doesn't depend on any specific implementation of test runner. Wrap those methods dynamically in QubesTestCase.__init__(), to handle any overriden methods in subclasses too. This avoids needing to use explicit decorators for every single test method. (cherry picked from commit 5548010)
- Loading branch information
Showing
1 changed file
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters