git: bb60d265c982 - main - testing: fix tests without cleanup in pytest.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Jan 2023 14:13:34 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=bb60d265c9825d71cce84a42f66a435f05a6c5f7 commit bb60d265c9825d71cce84a42f66a435f05a6c5f7 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-01-01 14:11:18 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-01-01 14:11:18 +0000 testing: fix tests without cleanup in pytest. It was broken by 89ffac3b01fb3f6749799ac67b7d94056a36778e, which added "cleanup" method to the base test class, resulting in reporting cleanup for all of the tests. --- tests/atf_python/utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/atf_python/utils.py b/tests/atf_python/utils.py index 17824262b1fd..fddfadac9a56 100644 --- a/tests/atf_python/utils.py +++ b/tests/atf_python/utils.py @@ -50,7 +50,3 @@ class BaseTest(object): def setup_method(self, method): """Run all pre-requisits for the test execution""" self._check_modules() - - def cleanup(self, test_id: str): - """Cleanup all test resources here""" - pass