aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/distutils/tests
Commit message (Collapse)AuthorAge
* gh-92584: Remove the distutils package (#99061)Victor Stinner2022-11-03
| | | | | | | | | | | | Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils
* gh-95853: Multiple ops and debug for wasm_build.py (#96744)Christian Heimes2022-09-11
|
* gh-90473: Fix more tests on platforms without umask (GH-95164)Christian Heimes2022-07-23
|
* gh-92897: Ensure `venv --copies` respects source build property of the ↵Jeremy Kloth2022-07-05
| | | | creating interpreter (GH-92899)
* gh-84623: Remove unused imports in tests (#93772)Victor Stinner2022-06-13
|
* gh-90473: Skip get_config_h() tests on WASI (GH-93645)Christian Heimes2022-06-09
|
* gh-90473: Misc test fixes for WASI (GH-93218)Christian Heimes2022-05-25
| | | | | | | | * ``sys.executable`` is not set * WASI does not support subprocess * ``pwd`` module is not available * WASI checks ``open`` syscall flags more strict, needs r, w, rw flag. * ``umask`` is not available * ``/dev/null`` may not be accessible
* bpo-45046: Support context managers in unittest (GH-28045)Serhiy Storchaka2022-05-08
| | | | | | Add methods enterContext() and enterClassContext() in TestCase. Add method enterAsyncContext() in IsolatedAsyncioTestCase. Add function enterModuleContext().
* gh-57684: Update tests for PYTHONSAFEPATH=1 (#92358)Victor Stinner2022-05-06
| | | | | Fix tests failing with the PYTHONSAFEPATH=1 env var. Enhance also -P help in Python usage (python --help).
* gh-91670: Removes `SO` config variable in `sysconfig.py` (#91671)Bryan Weber2022-04-18
| | | | | | | | | | | | | | | * Removes SO config variable in sysconfig Per @warsaw in https://github.com/python/cpython/issues/63754, this was deprecated in Python 3.4 and was suggested for removal in Python 3.5. * Add NEWS * Update Misc/NEWS.d/next/Library/2022-04-18-15-23-24.gh-issue-91670.6eyChw.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Éric <merwok@netwok.org>
* bpo-40280: Detect missing threading on WASM platforms (GH-32352)Christian Heimes2022-04-07
| | | Co-authored-by: Brett Cannon <brett@python.org>
* bpo-40280: Skip more tests on Emscripten (GH-31947)Christian Heimes2022-03-17
| | | | | | - lchmod, lchown are not fully implemented - skip umask tests - cannot fstat unlinked or renamed files yet - ignore musl libc issues that affect Emscripten
* bpo-40280: Block more non-working syscalls in Emscripten (GH-31757)Christian Heimes2022-03-08
| | | | | | | | | - getgroups always fails. - geteuid and getegid always return 0 (root), which confuse tarfile and tests. - hardlinks (link, linkat) always fails. - non-encodable file names are not supported by NODERAWFS layer. - mark more tests with dependency on subprocess and multiprocessing. Mocking does not work if the module fails to import.
* bpo-46933: Make pwd module optional (GH-31700)Christian Heimes2022-03-07
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)Christian Heimes2022-01-25
|
* bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)Serhiy Storchaka2021-09-13
| | | It is a decorator factory and should be always followed by "()".
* bpo-5846: Do not use obsolete unittest functions. (GH-28303)Serhiy Storchaka2021-09-13
| | | | Get rid of use of makeSuite() and findTestCases(). Also make test_math and test_threading_local discoverable.
* bpo-45124: Remove the bdist_msi command (GH-28195)Hugo van Kemenade2021-09-07
| | | | The bdist_msi command, deprecated in Python 3.9, is now removed. Use bdist_wheel (wheel packages) instead.
* bpo-44781: make distutils test suppress deprecation warning from import ↵Irit Katriel2021-08-02
| | | | distutils (GH-27485)
* Fix import of HTTPError (GH-22304)Sebastian Rittau2021-05-11
| | | Import HTTPError from urllib.error instead of urllib.request.
* bpo-41282: (PEP 632) Deprecate distutils.sysconfig (partial implementation ↵Lumír 'Frenzy' Balhar2021-04-23
| | | | | | | | | | of the PEP) (GH-23142) This change: * merges `distutils.sysconfig` into `sysconfig` while keeping the original functionality and * marks `distutils.sysconfig` as deprecated https://bugs.python.org/issue41282
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a ↵Ronald Oussoren2021-01-31
| | | | | string (GH-24341) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
* bpo-42802: Remove distutils bdist_wininst command (GH-24043)Victor Stinner2021-01-09
| | | | | | | | | | The distutils bdist_wininst command deprecated in Python 3.8 has been removed. The distutils bidst_wheel command is now recommended to distribute binary packages on Windows. * Remove Lib/distutils/command/bdist_wininst.py * Remove PC/bdist_wininst/ project * Remove Lib/distutils/command/wininst-*.exe programs * Remove all references to bdist_wininst
* bpo-31904: Fix site and sysconfig modules for VxWorks RTOS (GH-21821)pxinwr2020-12-20
|
* bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)FX Coudert2020-12-02
| | | | macOS releases numbering has changed as of macOS 11 Big Sur. Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
* bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)Ronald Oussoren2020-11-08
| | | | | | | | | | | Co-authored-by: Lawrence D’Anna <lawrence_danna@apple.com> * Add support for macOS 11 and Apple Silicon (aka arm64) As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy * Support building on recent versions of macOS while deploying to older versions This allows building installers on macOS 11 while still supporting macOS 10.9.
* bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359)Jason R. Coombs2020-07-07
| | | Automerge-Triggered-By: @jaraco
* bpo-40275: Use new test.support helper submodules in tests (GH-21317)Hai Shi2020-07-06
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21151)Hai Shi2020-06-25
| | | | | | | | | | | | | Use new test.support helper submodules in tests: * distutils tests * test_buffer * test_compile * test_filecmp * test_fileinput * test_readline * test_smtpnet * test_structmembers * test_tools
* bpo-41003: Fix test_copyreg when numpy is installed (GH-20935)Victor Stinner2020-06-17
| | | | | | | | Fix test_copyreg when numpy is installed: test.pickletester now saves/restores warnings.filters when importing numpy, to ignore filters installed by numpy. Add the save_restore_warnings_filters() function to the test.support.warnings_helper module.
* bpo-40698: Improve distutils upload hash digests (GH-20260)Christian Heimes2020-05-20
| | | | | | | - Fix upload test on systems that blocks MD5 - Add SHA2-256 and Blake2b-256 digests based on new Warehous and twine specs. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)Victor Stinner2020-05-15
| | | | | distutils.tests now saves/restores warnings filters to leave them unchanged. Importing tests imports docutils which imports pkg_resources which adds a warnings filter.
* bpo-40443: Remove unused imports in tests (GH-19804)Victor Stinner2020-04-30
|
* bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler ↵Michael Felt2020-04-03
| | | | is xlc on AIX (GH-19225)
* bpo-1294959: Add sys.platlibdir attribute (GH-18381)Victor Stinner2020-03-10
| | | | | | | | | | | | | Add --with-platlibdir option to the configure script: name of the platform-specific library directory, stored in the new sys.platlitdir attribute. It is used to build the path of platform-specific dynamic libraries and the path of the standard library. It is equal to "lib" on most platforms. On Fedora and SuSE, it is equal to "lib64" on 64-bit systems. Co-Authored-By: Jan Matějek <jmatejek@suse.com> Co-Authored-By: Matěj Cepl <mcepl@cepl.eu> Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
* bpo-39763: distutils.spawn now uses subprocess (GH-18743)Victor Stinner2020-03-04
| | | | | | | | Reimplement distutils.spawn.spawn() function with the subprocess module. setup.py now uses a basic implementation of the subprocess module if the subprocess module is not available: before required C extension modules are built.
* bpo-38597: Never statically link extension initialization code on Windows ↵Steve Dower2020-03-03
| | | | (GH-18724)
* bpo-39586: Deprecate distutils bdist_msi command (GH-18415)Hugo van Kemenade2020-02-10
|
* bpo-39555: Fix distutils test to handle _d suffix on Windows debug build ↵Steve Dower2020-02-06
| | | | (GH-18357)
* bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names ↵Stefan Behnel2020-02-04
| | | | | | | | | in distutils (GH-18150) Make it export the correct init symbol also on Windows. https://bugs.python.org/issue39432
* bpo-38839: Fix some unused functions in tests (GH-17189)Adam Johnson2019-11-19
|
* bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184)Pablo Galindo2019-08-08
|
* bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)Serhiy Storchaka2019-08-08
| | | | They now return NotImplemented for unsupported type of the other operand.
* bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)Victor Stinner2019-07-05
| | | | The distutils bdist_wininst command is now deprecated, use bdist_wheel (wheel packages) instead.
* bpo-37421: Fix test_distutils.test_build_ext() (GH-14564)Victor Stinner2019-07-03
| | | | | test_distutils.test_build_ext() is now able to remove the temporary directory on Windows: don't import the newly built C extension ("xx") in the current process, but test it in a separated process.
* bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)Paul Monson2019-06-12
|
* bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)Victor Stinner2019-04-17
| | | | | | | | | | | | | | | | shutil.which() and distutils.spawn.find_executable() now use os.confstr("CS_PATH") if available instead of os.defpath, if the PATH environment variable is not set. Don't use os.confstr("CS_PATH") nor os.defpath if the PATH environment variable is set to an empty string to mimick Unix 'which' command behavior. Changes: * find_executable() now starts by checking for the executable in the current working directly case. Add an explicit "if not path: return None". * Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
* bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)Victor Stinner2019-04-11
| | | | Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler().
* bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Philipp A2019-03-27
| | | | | | (GH-10605)
* bpo-36235: Enhance distutils test_customize_compiler() (GH-12403)Victor Stinner2019-03-18
| | | | The test test_customize_compiler() now mocks all sysconfig variables and all environment variables used by customize_compiler().