mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
#15872: More shutil test fixes for Windows
This one is different from 3.2 and 3.3. Windows ceased using *.* since 3.4 apparently.
This commit is contained in:
commit
8ade268c6b
1 changed files with 1 additions and 5 deletions
|
|
@ -172,11 +172,7 @@ def test_rmtree_errors(self):
|
|||
filename = os.path.join(tmpdir, "tstfile")
|
||||
with self.assertRaises(NotADirectoryError) as cm:
|
||||
shutil.rmtree(filename)
|
||||
if os.name == 'nt':
|
||||
rm_name = os.path.join(filename, '*.*')
|
||||
else:
|
||||
rm_name = filename
|
||||
self.assertEqual(cm.exception.filename, rm_name)
|
||||
self.assertEqual(cm.exception.filename, filename)
|
||||
self.assertTrue(os.path.exists(filename))
|
||||
# test that ignore_errors option is honored
|
||||
shutil.rmtree(filename, ignore_errors=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue