From ff79396c8371be548e7310cceb54f57f7fd1384e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 5 Sep 2016 11:13:07 -0700 Subject: [PATCH] fix skipping #27921 for windows --- Lib/test/test_tools/test_unparse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_tools/test_unparse.py b/Lib/test/test_tools/test_unparse.py index 1865fc8e44d..517f2613aa0 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