From 6d01e89a169687b73323895043c73c028b57f700 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 5 Jun 2022 19:40:11 -0400 Subject: Update Python versions to include Python 3.11. --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5aa948bf..e244014d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,10 +11,11 @@ jobs: strategy: matrix: python: - - 3.7 - - 3.8 - - 3.9 - - "3.10" + # Build on pre-releases until stable, then stable releases. + # actions/setup-python#213 + - ~3.7.0-0 + - ~3.10.0-0 + - ~3.11.0-0 platform: - ubuntu-latest - macos-latest -- cgit v1.2.1 From 053740f8f1553eb657b82fd486f590c567c46412 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 5 Jun 2022 19:47:05 -0400 Subject: Remove tests for SO config var, no longer present in Python 3.11. --- distutils/tests/test_sysconfig.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/distutils/tests/test_sysconfig.py b/distutils/tests/test_sysconfig.py index 1c88cc85..72bdc41c 100644 --- a/distutils/tests/test_sysconfig.py +++ b/distutils/tests/test_sysconfig.py @@ -17,7 +17,6 @@ from distutils.tests import support from test.support import run_unittest, swap_item from .py38compat import TESTFN -from .py38compat import check_warnings class SysconfigTestCase(support.EnvironGuard, unittest.TestCase): @@ -261,20 +260,6 @@ class SysconfigTestCase(support.EnvironGuard, unittest.TestCase): self.assertWarns(DeprecationWarning, sysconfig.get_config_var, 'SO') - @unittest.skipIf(sysconfig.get_config_var('EXT_SUFFIX') is None, - 'EXT_SUFFIX required for this test') - def test_SO_value(self): - with check_warnings(('', DeprecationWarning)): - self.assertEqual(sysconfig.get_config_var('SO'), - sysconfig.get_config_var('EXT_SUFFIX')) - - @unittest.skipIf(sysconfig.get_config_var('EXT_SUFFIX') is None, - 'EXT_SUFFIX required for this test') - def test_SO_in_vars(self): - vars = sysconfig.get_config_vars() - self.assertIsNotNone(vars['SO']) - self.assertEqual(vars['SO'], vars['EXT_SUFFIX']) - def test_customize_compiler_before_get_config_vars(self): # Issue #21923: test that a Distribution compiler # instance can be called without an explicit call to -- cgit v1.2.1 From 1da8e75782bd45de1bc1a4c0347ac8762ea71e68 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 6 Jun 2022 19:13:01 -0400 Subject: Mark test as xfail. Ref #148. --- distutils/tests/test_install.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/distutils/tests/test_install.py b/distutils/tests/test_install.py index 3aef9e43..ec482d1b 100644 --- a/distutils/tests/test_install.py +++ b/distutils/tests/test_install.py @@ -19,6 +19,8 @@ from distutils.extension import Extension from distutils.tests import support from test import support as test_support +import pytest + def _make_ext_name(modname): return modname + sysconfig.get_config_var('EXT_SUFFIX') @@ -29,6 +31,9 @@ class InstallTestCase(support.TempdirManager, support.LoggingSilencer, unittest.TestCase): + @pytest.mark.xfail( + 'platform.system() == "Windows" and sys.version_info > (3, 11)', + reason="pypa/distutils#148") def test_home_installation_scheme(self): # This ensure two things: # - that --home generates the desired set of directory names -- cgit v1.2.1