Skip to content

Commit

Permalink
[test] Fix package test
Browse files Browse the repository at this point in the history
The signature of setup_method() and teardown_method() functions changed.
  • Loading branch information
bruntib committed Jul 24, 2023
1 parent a0bf185 commit 2b461ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/binary_package/test_binary_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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)
Expand Down

0 comments on commit 2b461ae

Please sign in to comment.