diff options
author | Steve Dower <steve.dower@microsoft.com> | 2019-01-22 18:49:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 18:49:52 (GMT) |
commit | 28f6cb34f602b9796987904a607dceaf2e4a9e78 (patch) | |
tree | 82f000e6147a550cd4b803c19ffada03c5978a86 /Lib/test/test_symbol.py | |
parent | bf4ac2d2fd520c61306b2676db488adab9b5d8c5 (diff) | |
download | cpython-28f6cb34f602b9796987904a607dceaf2e4a9e78.zip cpython-28f6cb34f602b9796987904a607dceaf2e4a9e78.tar.gz cpython-28f6cb34f602b9796987904a607dceaf2e4a9e78.tar.bz2 |
bpo-35683: Improve Azure Pipelines steps (GH-11493)
Diffstat (limited to 'Lib/test/test_symbol.py')
-rw-r--r-- | Lib/test/test_symbol.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_symbol.py b/Lib/test/test_symbol.py index ed86aec..645d8f4 100644 --- a/Lib/test/test_symbol.py +++ b/Lib/test/test_symbol.py @@ -2,6 +2,7 @@ import unittest from test import support import os import sys +import sysconfig import subprocess @@ -38,8 +39,8 @@ class TestSymbolGeneration(unittest.TestCase): lines2 = fp.readlines() self.assertEqual(lines1, lines2) - @unittest.skipIf(not os.path.exists(GRAMMAR_FILE), - 'test only works from source build directory') + @unittest.skipUnless(sysconfig.is_python_build(), + 'test only works from source build directory') def test_real_grammar_and_symbol_file(self): output = support.TESTFN self.addCleanup(support.unlink, output) |