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

Method test_rmtree_works_on_bytes

Lib/test/test_shutil.py:186–193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

184class TestRmTree(BaseTest, unittest.TestCase):
185
186 def test_rmtree_works_on_bytes(self):
187 tmp = self.mkdtemp()
188 victim = os.path.join(tmp, 'killme')
189 os.mkdir(victim)
190 create_file(os.path.join(victim, 'somefile'), 'foo')
191 victim = os.fsencode(victim)
192 self.assertIsInstance(victim, bytes)
193 shutil.rmtree(victim)
194
195 @os_helper.skip_unless_symlink
196 def test_rmtree_fails_on_symlink_onerror(self):

Callers

nothing calls this directly

Calls 5

mkdtempMethod · 0.80
assertIsInstanceMethod · 0.80
create_fileFunction · 0.70
joinMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected