MCPcopy Index your code
hub / github.com/python/cpython / test_concrete_parser

Method test_concrete_parser

Lib/test/test_pathlib/test_pathlib.py:187–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

185 self.assertIs(type(p), expected)
186
187 def test_concrete_parser(self):
188 if self.cls is pathlib.PurePosixPath:
189 expected = posixpath
190 elif self.cls is pathlib.PureWindowsPath:
191 expected = ntpath
192 else:
193 expected = os.path
194 p = self.cls('a')
195 self.assertIs(p.parser, expected)
196
197 def test_different_parsers_unequal(self):
198 p = self.cls('a')

Callers

nothing calls this directly

Calls 2

clsMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected