diff options
author | Antoine Pitrou <pitrou@free.fr> | 2018-02-27 20:40:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 20:40:37 (GMT) |
commit | d7687eb4b66c9f675b112eff1169326a1766c111 (patch) | |
tree | bb762cb406dc076a2d34d8c31e16603971858750 /Tools | |
parent | 5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe (diff) | |
download | cpython-d7687eb4b66c9f675b112eff1169326a1766c111.zip cpython-d7687eb4b66c9f675b112eff1169326a1766c111.tar.gz cpython-d7687eb4b66c9f675b112eff1169326a1766c111.tar.bz2 |
bpo-31355: Travis-CI: re-enable macOS job (#5858)
The long build queues that plagued macOS builds on Travis seem to be
a thing of the past now.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/smelly.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/scripts/smelly.py b/Tools/scripts/smelly.py index 212eedb..43d0916 100755 --- a/Tools/scripts/smelly.py +++ b/Tools/scripts/smelly.py @@ -27,6 +27,11 @@ def get_exported_symbols(): def get_smelly_symbols(stdout): symbols = [] ignored_symtypes = set() + + allowed_prefixes = ('Py', '_Py') + if sys.platform == 'darwin': + allowed_prefixes += ('__Py',) + for line in stdout.splitlines(): # Split line '0000000000001b80 D PyTextIOWrapper_Type' if not line: @@ -47,7 +52,7 @@ def get_smelly_symbols(stdout): continue symbol = parts[-1] - if symbol.startswith(('Py', '_Py')): + if symbol.startswith(allowed_prefixes): continue symbol = '%s (type: %s)' % (symbol, symtype) symbols.append(symbol) |