Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 737924 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +3 lines)
Line  Link Here
0
-- a/conftest.py
0
++ b/conftest.py
Lines 11-17 Link Here
11
11
12
def pytest_collect_file(path, parent):
12
def pytest_collect_file(path, parent):
13
    if path.ext == ".docopt" and path.basename.startswith("test"):
13
    if path.ext == ".docopt" and path.basename.startswith("test"):
14
        return DocoptTestFile(path, parent)
14
        return DocoptTestFile.from_parent(parent, fspath=path)
15
15
16
16
17
def parse_test(raw):
17
def parse_test(raw):
Lines 41-47 Link Here
41
        for name, doc, cases in parse_test(raw):
41
        for name, doc, cases in parse_test(raw):
42
            name = self.fspath.purebasename
42
            name = self.fspath.purebasename
43
            for case in cases:
43
            for case in cases:
44
                yield DocoptTestItem("%s(%d)" % (name, index), self, doc, case)
44
                yield DocoptTestItem.from_parent(self, name="%s(%d)" % (name, index), doc=doc, case=case)
45
                index += 1
45
                index += 1
46
46
47
47

Return to bug 737924