MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

114 }
115
116 def setUp(self):
117 name = self.id().split('.')[-1]
118 if name in _tests_needing_posix and self.cls.parser is not posixpath:
119 self.skipTest('requires POSIX-flavoured path class')
120 if name in _tests_needing_windows and self.cls.parser is posixpath:
121 self.skipTest('requires Windows-flavoured path class')
122 p = self.cls('a')
123 self.parser = p.parser
124 self.sep = self.parser.sep
125 self.altsep = self.parser.altsep
126
127 def _check_str_subclass(self, *args):
128 # Issue #21127: it should be possible to construct a PurePath object

Callers

nothing calls this directly

Calls 4

skipTestMethod · 0.80
splitMethod · 0.45
idMethod · 0.45
clsMethod · 0.45

Tested by

no test coverage detected