mirror of https://github.com/python/cpython
#15872: Be flexible with appending *.* in shutil.rmtree test case
The Windows buildbots seem to be unable to agree whether they need them or not.
This commit is contained in:
parent
9a4a750673
commit
b9e9f3e70d
|
@ -132,7 +132,7 @@ class TestShutil(unittest.TestCase):
|
|||
filename = os.path.join(tmpdir, "tstfile")
|
||||
with self.assertRaises(OSError) as cm:
|
||||
shutil.rmtree(filename)
|
||||
if os.name == 'nt':
|
||||
if cm.exception.filename.endswith('*.*'):
|
||||
rm_name = os.path.join(filename, '*.*')
|
||||
else:
|
||||
rm_name = filename
|
||||
|
|
Loading…
Reference in New Issue