[Python-checkins] cpython: fix skipping #27921 for windows

benjamin.peterson python-checkins at python.org
Mon Sep 5 14:13:30 EDT 2016


https://hg.python.org/cpython/rev/df5b6d1c7ea8
changeset:   103051:df5b6d1c7ea8
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Sep 05 11:13:07 2016 -0700
summary:
  fix skipping #27921 for windows

files:
  Lib/test/test_tools/test_unparse.py |  3 +--
  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
--- a/Lib/test/test_tools/test_unparse.py
+++ b/Lib/test/test_tools/test_unparse.py
@@ -288,8 +288,7 @@
             # 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list