Skip to content

Commit

Permalink
Merge pull request #69 from hrnciar/pytest8
Browse files Browse the repository at this point in the history
Replace setup() method with setup_method() to add compatibility with pytest 8
  • Loading branch information
alfredodeza committed Apr 22, 2024
2 parents b51ce4b + bb51772 commit 827a3ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion remoto/tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class TestExtendPath(object):

def setup(self):
def setup_method(self):
self.path = '/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin'

def test_no_environment_sets_path(self):
Expand Down
2 changes: 1 addition & 1 deletion remoto/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_command_that_is_not_a_list(self):

class TestRemoteError(object):

def setup(self):
def setup_method(self):
self.traceback = ('\n').join([
'Traceback (most recent call last):',
' File "<string>", line 1, in <module>',
Expand Down

0 comments on commit 827a3ea

Please sign in to comment.