https://sources.debian.org/data/main/d/docopt/0.6.2-3/debian/patches/pytest6 From: Michael R. Crusoe Subject: fix for pytest 6.x comptability Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979285 --- docopt.orig/conftest.py +++ docopt/conftest.py @@ -11,6 +11,8 @@ def pytest_collect_file(path, parent): if path.ext == ".docopt" and path.basename.startswith("test"): + if hasattr(DocoptTestFile, "from_parent"): + return DocoptTestFile.from_parent(parent, fspath=path) return DocoptTestFile(path, parent) @@ -41,7 +43,10 @@ for name, doc, cases in parse_test(raw): name = self.fspath.purebasename for case in cases: - yield DocoptTestItem("%s(%d)" % (name, index), self, doc, case) + if hasattr(DocoptTestItem, "from_parent"): + yield DocoptTestItem.from_parent(self, name="%s(%d)" % (name, index), doc=doc, case=case) + else: + yield DocoptTestItem("%s(%d)" % (name, index), self, doc, case) index += 1 3bd87aec'>refslogtreecommitdiff
path: root/etc/git/gitconfig
AgeCommit message (Expand)Author
2021-10-14Add git configuration templates to improve diff hunk header detection....This is a follow-up to commit 9fc8ae4171e5da4939a64fc6d684c8b9d85bbe84, which missed two hunks from <https://issues.guix.gnu.org/50363>. Reported by hackeryarn on #guix. * .gitattributes, etc/git/gitconfig: New files. Signed-off-by: Marius Bakke <marius@gnu.org> Sarah Morgensen