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

Method test_concrete_class

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

Source from the content-addressed store, hash-verified

177 self.assertEqual(str(p), '\\\\a\\b\\c\\d')
178
179 def test_concrete_class(self):
180 if self.cls is pathlib.PurePath:
181 expected = pathlib.PureWindowsPath if os.name == 'nt' else pathlib.PurePosixPath
182 else:
183 expected = self.cls
184 p = self.cls('a')
185 self.assertIs(type(p), expected)
186
187 def test_concrete_parser(self):
188 if self.cls is pathlib.PurePosixPath:

Callers

nothing calls this directly

Calls 2

clsMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected