summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-05 18:13:07 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-05 18:13:07 (GMT)
commitff79396c8371be548e7310cceb54f57f7fd1384e (patch)
tree7a4e35501cf2d1527879c9324a9e182e0bb6f30c
parent1c2400cfdc22f123c8f11ad43dfec85b028a96c2 (diff)
downloadcpython-ff79396c8371be548e7310cceb54f57f7fd1384e.zip
cpython-ff79396c8371be548e7310cceb54f57f7fd1384e.tar.gz
cpython-ff79396c8371be548e7310cceb54f57f7fd1384e.tar.bz2
fix skipping #27921 for windows
-rw-r--r--Lib/test/test_tools/test_unparse.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_tools/test_unparse.py b/Lib/test/test_tools/test_unparse.py
index 1865fc8..517f261 100644
--- a/Lib/test/test_tools/test_unparse.py
+++ b/Lib/test/test_tools/test_unparse.py
@@ -288,8 +288,7 @@ class DirectoryTestCase(ASTTestCase):
# it's very much a hack that I'm skipping these files, but
# I can't figure out why they fail. I'll fix it when I
# address issue #27948.
- if (filename.endswith('/test_fstring.py') or
- filename.endswith('/test_traceback.py')):
+ if os.path.basename(filename) in ('test_fstring.py', 'test_traceback.py'):
if test.support.verbose:
print(f'Skipping {filename}: see issue 27921')
continue