summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-12-10 10:08:09 (GMT)
committerHynek Schlawack <hs@ox.cx>2012-12-10 10:08:09 (GMT)
commit9a4a750673ca6d93c635a32d84b2cf94ebc4931c (patch)
tree7a1ccac717962d9c15d9999fd9365a4600c0ff1d /Lib/test
parent9e8ac56e35c04a5326af6683f9dc491dee67f8fe (diff)
downloadcpython-9a4a750673ca6d93c635a32d84b2cf94ebc4931c.zip
cpython-9a4a750673ca6d93c635a32d84b2cf94ebc4931c.tar.gz
cpython-9a4a750673ca6d93c635a32d84b2cf94ebc4931c.tar.bz2
#15872: More shutil test fixes for Windows
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_shutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 9dab5f5..1eb5e89 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.