Skip to content

Commit

Permalink
Update pylint on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Apr 27, 2020
1 parent 1f0ce3a commit adba05d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -276,7 +276,7 @@ jobs:
- stage: test
# We need pylint, since above we're not installing a
# requirements file.
install: pip install pylint
install: pip install -U pylint
script: python -m pylint --limit-inference-results=1 --rcfile=.pylintrc gevent
env: TRAVIS_PYTHON_VERSION=3.7
name: lint37
Expand Down
4 changes: 2 additions & 2 deletions dev-requirements.txt
Expand Up @@ -6,8 +6,8 @@ restview
pylint>=1.8.0 ; python_version < "3.4"
# pylint 2 needs astroid 2; unfortunately, it uses `typed_ast`
# which has a C extension that doesn't build on PyPy
pylint >= 2.3.1 ; python_version >= "3.4" and platform_python_implementation == "CPython"
astroid >= 2.2.5 ; python_version >= "3.4" and platform_python_implementation == "CPython"
pylint >= 2.5.0 ; python_version >= "3.4" and platform_python_implementation == "CPython"
astroid >= 2.4.0 ; python_version >= "3.4" and platform_python_implementation == "CPython"

# For generating CHANGES.rst
towncrier
Expand Down
10 changes: 10 additions & 0 deletions src/gevent/testing/patched_tests_setup.py
Expand Up @@ -16,6 +16,8 @@
from .sysinfo import RUNNING_ON_APPVEYOR as APPVEYOR
from .sysinfo import RUNNING_ON_TRAVIS as TRAVIS
from .sysinfo import RESOLVER_NOT_SYSTEM as ARES
from .sysinfo import RESOLVER_ARES
from .sysinfo import RUNNING_ON_CI
from .sysinfo import RUN_COVERAGE


Expand Down Expand Up @@ -1254,6 +1256,14 @@ def test(*args, **kwargs):
'test_socket.RecvmsgIntoTCPTest.testRecvmsgIntoGenerator',
]

if RESOLVER_ARES and PY38 and not RUNNING_ON_CI:
disabled_tests += [
# When updating to 1.16.0 this was seen locally, but not on CI.
# Tuples differ: ('ff02::1de:c0:face:8d', 1234, 0, 0)
# != ('ff02::1de:c0:face:8d', 1234, 0, 1)
'test_socket.GeneralModuleTests.test_getaddrinfo_ipv6_scopeid_symbolic',
]

# Now build up the data structure we'll use to actually find disabled tests
# to avoid a linear scan for every file (it seems the list could get quite large)
# (First, freeze the source list to make sure it isn't modified anywhere)
Expand Down

0 comments on commit adba05d

Please sign in to comment.