summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pep277.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-11-05 00:28:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-11-05 00:28:28 (GMT)
commitefe2b53d12adccbe87d75c511c2dc88acec0ac63 (patch)
treed8e136856b0653e4c2384fee84d85f29cc5caf61 /Lib/test/test_pep277.py
parent4e7d2d481a5ab86977bd9dbafbceabec7b48883b (diff)
downloadcpython-efe2b53d12adccbe87d75c511c2dc88acec0ac63.zip
cpython-efe2b53d12adccbe87d75c511c2dc88acec0ac63.tar.gz
cpython-efe2b53d12adccbe87d75c511c2dc88acec0ac63.tar.bz2
Issue #15478: Fix test_pep277 on Windows
os.listdir() now returns the original path in OSError.filename (on any platform), even if "*.*" was added to the path (on Windows).
Diffstat (limited to 'Lib/test/test_pep277.py')
-rw-r--r--Lib/test/test_pep277.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py
index 4b16cbb..9bae6dc 100644
--- a/Lib/test/test_pep277.py
+++ b/Lib/test/test_pep277.py
@@ -99,10 +99,6 @@ class UnicodeFileTests(unittest.TestCase):
with self.assertRaises(expected_exception) as c:
fn(filename)
exc_filename = c.exception.filename
- # listdir may append a wildcard to the filename
- if fn is os.listdir and sys.platform == 'win32':
- exc_filename, _, wildcard = exc_filename.rpartition(os.sep)
- self.assertEqual(wildcard, '*.*')
if check_filename:
self.assertEqual(exc_filename, filename, "Function '%s(%a) failed "
"with bad filename in the exception: %a" %