Skip to content

Commit

Permalink
Move to PyPy 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Dec 11, 2021
1 parent 51c5aa8 commit f1c55ee
Show file tree
Hide file tree
Showing 65 changed files with 6,841 additions and 4,590 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [2.7, pypy-2.7, pypy-3.6, 3.6, 3.7, 3.8, 3.9, '3.10.0']
python-version: [2.7, pypy-2.7, pypy-3.7, 3.6, 3.7, 3.8, 3.9, '3.10.0']
# ubuntu-latest is at least 20.04. But this breaks the SSL
# tests because Ubuntu increased the default OpenSSL
# strictness.
Expand All @@ -156,15 +156,15 @@ jobs:
- os: macos-latest
python-version: pypy-2.7
- os: macos-latest
python-version: pypy-3.6
python-version: pypy-3.7
- os: macos-latest
python-version: 3.6
- os: ubuntu-latest
python-version: 2.7
- os: ubuntu-latest
python-version: pypy-2.7
- os: ubuntu-latest
python-version: pypy-3.6
python-version: pypy-3.7
- os: ubuntu-latest
python-version: 3.6
- os: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions docs/changes/1843.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update the tested versions of PyPy2 and PyPy3. For PyPy2, there should
be no user visible changes, but for PyPy3, support has moved from
Python 3.6 to Python 3.7.
1 change: 0 additions & 1 deletion src/gevent/_ssl3.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ def unwrap(self):
break
raise


self._sslobj = None

# The return value of shutting down the SSLObject is the
Expand Down
7 changes: 7 additions & 0 deletions src/gevent/testing/patched_tests_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,13 @@ def get_switch_expected(fullname):
'test_subprocess.ProcesstestCase.test_invalid_env',
]

if PYPY and PY37:
disabled_tests += [
# The exact error message the code code checks for is different
# (possibly just on macOS?). Plain PyPy3 fails as well.
'test_signal.WakeupSignalTests.test_wakeup_write_error',
]

if 'thread' in os.getenv('GEVENT_FILE', ''):
disabled_tests += [
'test_subprocess.ProcessTestCase.test_double_close_on_error'
Expand Down
4 changes: 3 additions & 1 deletion src/gevent/tests/test__socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ def accept_and_read():
# from generating ``ConnectionResetError`` on AppVeyor.
try:
client = client.unwrap()
except ValueError:
except (ValueError, OSError):
# PyPy 3.7 started raising _cffi_ssl._stdssl.error.SSLSyscallError,
# which is an OSError
pass

try:
Expand Down
68 changes: 0 additions & 68 deletions src/greentest/3.6pypy/keycert.passwd.pem

This file was deleted.

42 changes: 0 additions & 42 deletions src/greentest/3.6pypy/ssl_key.passwd.pem

This file was deleted.

Loading

0 comments on commit f1c55ee

Please sign in to comment.