MCPcopy
hub / github.com/pytest-dev/pytest / __add__

Method __add__

src/_pytest/_py/path.py:516–518  ·  view source on GitHub ↗

Return new path object with 'other' added to the basename

(self, other)

Source from the content-addressed store, hash-verified

514 return last
515
516 def __add__(self, other):
517 """Return new path object with 'other' added to the basename"""
518 return self.new(basename=self.basename + str(other))
519
520 def visit(self, fil=None, rec=None, ignore=NeverRaised, bf=False, sort=False):
521 """Yields all paths below the current one

Callers

nothing calls this directly

Calls 1

newMethod · 0.95

Tested by

no test coverage detected