(self)
| 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') |