summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-12-10 10:08:59 (GMT)
committerHynek Schlawack <hs@ox.cx>2012-12-10 10:08:59 (GMT)
commit9d5e0cca85f22e4d1b7357c32103e63c6396f481 (patch)
treebd4d6bed0608d277390a59b2020a096d8e7c53a1 /Lib
parentb57b09407767d340c655cb12acd4cc0a561cab0f (diff)
parent9a4a750673ca6d93c635a32d84b2cf94ebc4931c (diff)
downloadcpython-9d5e0cca85f22e4d1b7357c32103e63c6396f481.zip
cpython-9d5e0cca85f22e4d1b7357c32103e63c6396f481.tar.gz
cpython-9d5e0cca85f22e4d1b7357c32103e63c6396f481.tar.bz2
#15872: More shutil test fixes for Windows
Diffstat (limited to 'Lib')
-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 f352ef1..92ab0a4 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -188,11 +188,11 @@ class TestShutil(unittest.TestCase):
self.assertIs(errors[0][0], os.listdir)
self.assertEqual(errors[0][1], filename)
self.assertIsInstance(errors[0][2][1], NotADirectoryError)
- 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], NotADirectoryError)
- 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.