#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:
commit
f29b4937f7
@ -171,7 +171,7 @@ class TestShutil(unittest.TestCase):
|
|||||||
filename = os.path.join(tmpdir, "tstfile")
|
filename = os.path.join(tmpdir, "tstfile")
|
||||||
with self.assertRaises(NotADirectoryError) as cm:
|
with self.assertRaises(NotADirectoryError) as cm:
|
||||||
shutil.rmtree(filename)
|
shutil.rmtree(filename)
|
||||||
if os.name == 'nt':
|
if cm.exception.filename.endswith('*.*'):
|
||||||
rm_name = os.path.join(filename, '*.*')
|
rm_name = os.path.join(filename, '*.*')
|
||||||
else:
|
else:
|
||||||
rm_name = filename
|
rm_name = filename
|
||||||
|
Loading…
x
Reference in New Issue
Block a user