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

Method __eq__

src/_pytest/_py/path.py:562–574  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

560 return hash(s)
561
562 def __eq__(self, other):
563 s1 = os.fspath(self)
564 try:
565 s2 = os.fspath(other)
566 except TypeError:
567 return False
568 if iswin32:
569 s1 = s1.lower()
570 try:
571 s2 = s2.lower()
572 except AttributeError:
573 return False
574 return s1 == s2
575
576 def __ne__(self, other):
577 return not (self == other)

Callers

nothing calls this directly

Calls 1

fspathMethod · 0.80

Tested by

no test coverage detected