summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2018-02-27 20:40:37 (GMT)
committerGitHub <noreply@github.com>2018-02-27 20:40:37 (GMT)
commitd7687eb4b66c9f675b112eff1169326a1766c111 (patch)
treebb762cb406dc076a2d34d8c31e16603971858750 /Tools
parent5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe (diff)
downloadcpython-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-xTools/scripts/smelly.py7
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)