Skip to content

Commit

Permalink
Merge pull request #229 from mr-c/pytest8
Browse files Browse the repository at this point in the history
Add pytest 8.x compat
  • Loading branch information
daler authored Mar 6, 2024
2 parents 955fb41 + 917bfaf commit 32e48a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gffutils/test/feature_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ class IsolatedTestCase(object):
namespace or something? Anyway, these setup/teardowns do the trick.
"""

def setup(self):
def setup_method(self):
constants.always_return_list = False

def teardown(self):
def teardown_method(self):
constants.always_return_list = True

def test_feature_single_item(self):
Expand Down
2 changes: 1 addition & 1 deletion gffutils/test/test_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class BaseDB(object):

orig_fn = None

def setup(self):
def setup_method(self):
def gff_id_func(f):
if "ID" in f.attributes:
return f.attributes["ID"][0]
Expand Down

0 comments on commit 32e48a1

Please sign in to comment.