Skip to content

Commit 847a794

Browse files
committed
Merge branch '2.0'
2 parents 5fa6253 + 788259b commit 847a794

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

docs/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Changelog
33
=========
44

5+
- :release:`2.0.2 <2024-03-29>`
6+
- :bug:`32` Fix dangling compatibility issues with pytest version 8.x. Thanks
7+
to Alex Gaynor for the patch!
58
- :release:`2.0.1 <2023-05-22>`
69
- :bug:`9` Don't try loading Pytest fixture functions as if they were test
710
functions. Classifying this as a bug even though it's a moderately sized

pytest_relaxed/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version_info__ = (2, 0, 1)
1+
__version_info__ = (2, 0, 2)
22
__version__ = ".".join(map(str, __version_info__))

pytest_relaxed/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
from .fixtures import environ # noqa
1010

1111

12-
def pytest_ignore_collect(path, config):
12+
def pytest_ignore_collect(collection_path, config):
1313
# Ignore files and/or directories marked as private via Python convention.
14-
return path.basename.startswith("_")
14+
return collection_path.name.startswith("_")
1515

1616

1717
# We need to use collect_file, not pycollect_makemodule, as otherwise users

tests/test_collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def test_setup_given_inner_class_instances_when_inherited(self, testdir):
208208
testdir.makepyfile(
209209
foo="""
210210
class Outer:
211-
def setup(self):
211+
def setup_method(self):
212212
self.some_attr = 17
213213
214214
class inner:

0 commit comments

Comments
 (0)