From: Hynek Schlawack Date: Mon, 10 Dec 2012 10:08:09 +0000 (+0100) Subject: #15872: More shutil test fixes for Windows X-Git-Tag: v3.3.1rc1~543^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a4a750673ca6d93c635a32d84b2cf94ebc4931c;p=python #15872: More shutil test fixes for Windows --- diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 9dab5f510d..1eb5e892e8 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -149,11 +149,11 @@ class TestShutil(unittest.TestCase): self.assertIs(errors[0][0], os.listdir) self.assertEqual(errors[0][1], filename) self.assertIsInstance(errors[0][2][1], OSError) - self.assertEqual(errors[0][2][1].filename, filename) + self.assertEqual(errors[0][2][1].filename, rm_name) self.assertIs(errors[1][0], os.rmdir) self.assertEqual(errors[1][1], filename) self.assertIsInstance(errors[1][2][1], OSError) - self.assertEqual(errors[1][2][1].filename, filename) + self.assertEqual(errors[1][2][1].filename, rm_name) # See bug #1071513 for why we don't run this on cygwin # and bug #1076467 for why we don't run this as root.