|
23 | 23 |
|
24 | 24 |
|
25 | 25 | class Tests(unittest.TestCase): |
| 26 | + """Test querying tools from several modules. |
| 27 | +
|
| 28 | + Note: |
| 29 | +
|
| 30 | + Tests that run setup script directly fail due to conflict between distutils used internally |
| 31 | + by setuptools and distutils used internally by pip. For more information, see: |
| 32 | + - https://github.com/pypa/setuptools/issues/3297 |
| 33 | + - https://github.com/pypa/pip/issues/8761 |
| 34 | + """ |
26 | 35 |
|
27 | 36 | def _check_examples_count(self, description, examples): |
28 | 37 | lvl = logging.WARNING if len(examples) < 10 else logging.INFO |
@@ -87,6 +96,7 @@ def test_query_pkg_info(self): |
87 | 96 |
|
88 | 97 | @unittest.skipUnless( |
89 | 98 | os.environ.get('TEST_PACKAGING') or os.environ.get('CI'), 'skipping packaging test') |
| 99 | + @unittest.skipIf(sys.version_info < (3, 12), 'requires Python 3.12+') |
90 | 100 | def test_query_pkg_info_current(self): |
91 | 101 | with preserve_logger_level('version_query'): |
92 | 102 | run_module('setup', 'build') |
@@ -120,6 +130,7 @@ def test_query_package_folder(self): |
120 | 130 |
|
121 | 131 | @unittest.skipUnless( |
122 | 132 | os.environ.get('TEST_PACKAGING') or os.environ.get('CI'), 'skipping packaging test') |
| 133 | + @unittest.skipIf(sys.version_info < (3, 12), 'requires Python 3.12+') |
123 | 134 | def test_query_package_folder_current(self): |
124 | 135 | with preserve_logger_level('version_query'): |
125 | 136 | run_module('setup', 'build') |
|
0 commit comments