Skip to content

Commit

Permalink
Merge pull request gevent#1844 from gevent/py310final
Browse files Browse the repository at this point in the history
Update to testing 3.10.0 final
  • Loading branch information
jamadden authored Dec 8, 2021
2 parents e5c31fe + 290af77 commit 3ca670e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 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-rc.1']
python-version: [2.7, pypy-2.7, pypy-3.6, 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 Down Expand Up @@ -174,7 +174,7 @@ jobs:
- os: ubuntu-18.04
python-version: 3.9
- os: ubuntu-18.04
python-version: '3.10.0-rc.1'
python-version: '3.10.0'
steps:
- name: checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ environment:

# 64-bit
- PYTHON: "C:\\Python310-x64"
PYTHON_VERSION: "3.10.0rc1"
PYTHON_VERSION: "3.10.0"
PYTHON_ARCH: "64"
PYTHON_EXE: python
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
Expand Down
13 changes: 13 additions & 0 deletions src/greentest/3.10/test_threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
# on platforms known to behave badly.
platforms_to_skip = ('netbsd5', 'hp-ux11')

# Is Python built with Py_DEBUG macro defined?
Py_DEBUG = hasattr(sys, 'gettotalrefcount')


def restore_default_excepthook(testcase):
testcase.addCleanup(setattr, threading, 'excepthook', threading.excepthook)
Expand Down Expand Up @@ -916,6 +919,16 @@ def noop(): pass
threading.Thread(target=noop).start()
# Thread.join() is not called

@unittest.skipUnless(Py_DEBUG, 'need debug build (Py_DEBUG)')
def test_debug_deprecation(self):
# bpo-44584: The PYTHONTHREADDEBUG environment variable is deprecated
rc, out, err = assert_python_ok("-Wdefault", "-c", "pass",
PYTHONTHREADDEBUG="1")
msg = (b'DeprecationWarning: The threading debug '
b'(PYTHONTHREADDEBUG environment variable) '
b'is deprecated and will be removed in Python 3.12')
self.assertIn(msg, err)


class ThreadJoinOnShutdown(BaseTestCase):

Expand Down
2 changes: 1 addition & 1 deletion src/greentest/3.10/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.0rc1
3.10.0

0 comments on commit 3ca670e

Please sign in to comment.