Commit 748cedaf authored by Jason Madden's avatar Jason Madden

Lint.

parent 03926ad2
......@@ -228,14 +228,6 @@ jobs:
python -c 'import gevent.ares; print(gevent.ares)'
ccache -s
- name: Lint
if: matrix.python-version == '3.10' && startsWith(runner.os, 'Linux')
# We only need to do this on one version.
# We do this here rather than a separate job to avoid the compilation overhead.
# TODO: Revisit this when we have caching of that part.
run: |
pip install -U pylint
python -m pylint --rcfile=.pylintrc gevent
- name: "Tests: Basic"
run: |
python -m gevent.tests --second-chance $G_USE_COV
......@@ -314,6 +306,17 @@ jobs:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
- name: Lint
if: matrix.python-version == '3.10' && startsWith(runner.os, 'Linux')
# We only need to do this on one version.
# We do this here rather than a separate job to avoid the compilation overhead.
# 20230707: Python 3.11 crashes inside pylint/astroid on _ssl3.py;
# reverting to Python 3.10 solved that.
# TODO: Revisit this when we have caching of that part.
run: |
pip install -U pylint
python -m pylint --rcfile=.pylintrc gevent
coveralls_finish:
needs: test
runs-on: ubuntu-latest
......
......@@ -18,6 +18,7 @@ class TestPickle(greentest.TestCase):
dumped = pickle.dumps(r, protocol)
loaded = pickle.loads(dumped)
self.assertEqual(r, loaded)
# pylint:disable=no-member
self.assertEqual(r.family, loaded.family)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment