]> granicus.if.org Git - python/commitdiff
fix skipping #27921 for windows
authorBenjamin Peterson <benjamin@python.org>
Mon, 5 Sep 2016 18:13:07 +0000 (11:13 -0700)
committerBenjamin Peterson <benjamin@python.org>
Mon, 5 Sep 2016 18:13:07 +0000 (11:13 -0700)
Lib/test/test_tools/test_unparse.py

index 1865fc8e44df5c44e99a84a6b12eafae5dd65fd5..517f2613aa023323a38177c8a212c4a79c492a44 100644 (file)
@@ -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