From 2b461ae8730c454a37097660ff1d9a0af771342d Mon Sep 17 00:00:00 2001 From: bruntib Date: Mon, 24 Jul 2023 12:54:47 +0200 Subject: [PATCH] [test] Fix package test The signature of setup_method() and teardown_method() functions changed. --- tests/functional/binary_package/test_binary_package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/binary_package/test_binary_package.py b/tests/functional/binary_package/test_binary_package.py index e54c371371..e06926baf2 100644 --- a/tests/functional/binary_package/test_binary_package.py +++ b/tests/functional/binary_package/test_binary_package.py @@ -24,7 +24,7 @@ class TestBinaryPackage(unittest.TestCase): Binary package tests. """ - def setup_method(self): + def setup_method(self, method): self.codechecker_bin = os.environ.get("CODECHECKER_BIN", "CodeChecker") self.compiler_bin = os.environ.get("CC", "gcc") @@ -46,7 +46,7 @@ def setup_method(self): self.old_pwd = os.getcwd() os.chdir(self.test_workspace) - def teardown_method(self): + def teardown_method(self, method): """ Restore environment and clear the workspace. """ os.chdir(self.old_pwd) shutil.rmtree(self.test_workspace, True)