From b9e9f3e70d3e5c115d179331ce640b0610c5a243 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 10 Dec 2012 12:01:28 +0100 Subject: #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. --- Lib/test/test_shutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 1eb5e89..9509d2a 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -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 -- cgit v0.12