diff --git a/testing/test_collection.py b/testing/test_collection.py index 90c248b4a..050b54598 100644 --- a/testing/test_collection.py +++ b/testing/test_collection.py @@ -53,8 +53,8 @@ class TestCollector: def test_getparent(self, testdir): modcol = testdir.getmodulecol( """ - class TestClass(object): - def test_foo(): + class TestClass: + def test_foo(self): pass """ ) diff --git a/testing/test_mark.py b/testing/test_mark.py index 76ee289b6..530f9f168 100644 --- a/testing/test_mark.py +++ b/testing/test_mark.py @@ -533,10 +533,10 @@ class TestFunctional: @pytest.mark.c(location="class") class Test: @pytest.mark.c(location="function") - def test_has_own(): + def test_has_own(self): pass - def test_has_inherited(): + def test_has_inherited(self): pass """