Skip to content

Commit

Permalink
Update to testing 3.10.0 final
Browse files Browse the repository at this point in the history
That's the latest that GHA currently has. We've been testing 3.10.0 on AppVeyor.
  • Loading branch information
jamadden committed Dec 7, 2021
1 parent e5c31fe commit 290af77
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 290af77

Please sign in to comment.