tests: fix TypeErrors (#7038)
* tests: fix TypeError with test_mark_closest It fails when trying to run it actually: > TypeError: test_has_inherited() takes 0 positional arguments but 1 was given * Fix testing/test_collection.py::TestCollector::test_getparent
This commit is contained in:
parent
6356583eab
commit
4fd2623c12
|
@ -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
|
||||
"""
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue