File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,15 @@ matrix:
5252 - python -m pip install sphinx~=1.6.1 blurb
5353 script :
5454 - make check suspicious html SPHINXOPTS="-q -W -j4"
55+ - os : osx
56+ language : c
57+ compiler : clang
58+ # Testing under macOS is optional until testing stability has been demonstrated.
59+ env : OPTIONAL=true
60+ before_install :
61+ # Python 3 is needed for Argument Clinic and multissl
62+ - brew install xz python3
63+ - export PATH=$(brew --prefix)/bin:$(brew --prefix)/sbin:$PATH
5564 - os : linux
5665 language : c
5766 compiler : gcc
@@ -76,9 +85,9 @@ before_install:
7685 - set -e
7786 - |
7887 # Check short-circuit conditions
79- if [ "${TESTING}" != "docs" ]
88+ if [[ "${TESTING}" != "docs" ] ]
8089 then
81- if [ "$TRAVIS_PULL_REQUEST" = "false" ]
90+ if [[ "$TRAVIS_PULL_REQUEST" == "false" ] ]
8291 then
8392 echo "Not a PR, doing full build."
8493 else
@@ -101,7 +110,7 @@ before_install:
101110install :
102111 - |
103112 # Install OpenSSL as necessary
104- if [ "${TESTING}" != "docs" ]
113+ if [[ "${TESTING}" != "docs" ] ]
105114 then
106115 # clang complains about unused-parameter a lot, redirect stderr
107116 python3 Tools/ssl/multissltests.py --steps=library \
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ def get_exported_symbols():
2727def get_smelly_symbols (stdout ):
2828 symbols = []
2929 ignored_symtypes = set ()
30+
31+ allowed_prefixes = ('Py' , '_Py' )
32+ if sys .platform == 'darwin' :
33+ allowed_prefixes += ('__Py' ,)
34+
3035 for line in stdout .splitlines ():
3136 # Split line '0000000000001b80 D PyTextIOWrapper_Type'
3237 if not line :
@@ -47,7 +52,7 @@ def get_smelly_symbols(stdout):
4752 continue
4853
4954 symbol = parts [- 1 ]
50- if symbol .startswith (( 'Py' , '_Py' ) ):
55+ if symbol .startswith (allowed_prefixes ):
5156 continue
5257 symbol = '%s (type: %s)' % (symbol , symtype )
5358 symbols .append (symbol )
You can’t perform that action at this time.
0 commit comments