Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4a750 commit b9e9f3eCopy full SHA for b9e9f3e
1 file changed
Lib/test/test_shutil.py
@@ -132,7 +132,7 @@ def test_rmtree_errors(self):
132
filename = os.path.join(tmpdir, "tstfile")
133
with self.assertRaises(OSError) as cm:
134
shutil.rmtree(filename)
135
- if os.name == 'nt':
+ if cm.exception.filename.endswith('*.*'):
136
rm_name = os.path.join(filename, '*.*')
137
else:
138
rm_name = filename
0 commit comments