diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-06-06 19:31:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 19:31:36 -0400 |
commit | ad9b074dcb367430fa7ae3ff03851308c835184a (patch) | |
tree | 8b76fd23d434d5942eb448847e5295b8f4520aaf | |
parent | 3f6a9ad0af9554fa5eaa9fb27d4f5ab755e2b28f (diff) | |
parent | 1da8e75782bd45de1bc1a4c0347ac8762ea71e68 (diff) | |
download | python-setuptools-git-ad9b074dcb367430fa7ae3ff03851308c835184a.tar.gz |
Merge pull request #147 from pypa/feature/py311
Add testing for Python 3.11
-rw-r--r-- | .github/workflows/main.yml | 9 | ||||
-rw-r--r-- | distutils/tests/test_install.py | 5 | ||||
-rw-r--r-- | distutils/tests/test_sysconfig.py | 15 |
3 files changed, 10 insertions, 19 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 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 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 |