mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fixes tests broken by issue #27781.
This commit is contained in:
parent
ee178e6d6e
commit
e58571b7ea
4 changed files with 10 additions and 6 deletions
|
@ -132,9 +132,7 @@ class TestShutil(unittest.TestCase):
|
|||
write_file(os.path.join(victim, 'somefile'), 'foo')
|
||||
victim = os.fsencode(victim)
|
||||
self.assertIsInstance(victim, bytes)
|
||||
win = (os.name == 'nt')
|
||||
with self.assertWarns(DeprecationWarning) if win else ExitStack():
|
||||
shutil.rmtree(victim)
|
||||
shutil.rmtree(victim)
|
||||
|
||||
@support.skip_unless_symlink
|
||||
def test_rmtree_fails_on_symlink(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue