mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
* Fix the compatibility of the Python C API with C++ older than C++11. * _Py_NULL is only defined as nullptr on C++11 and newer. (cherry picked from commit4caf5c2753
) * test_cppext now builds the C++ extension with setuptools. * Add @test.support.requires_venv_with_pip. (cherry picked from commitca0cc9c433
)
This commit is contained in:
parent
871b1dc469
commit
ef591cf8e3
7 changed files with 156 additions and 88 deletions
|
@ -17,7 +17,8 @@ import sys
|
|||
import tempfile
|
||||
from test.support import (captured_stdout, captured_stderr, requires_zlib,
|
||||
skip_if_broken_multiprocessing_synchronize, verbose,
|
||||
requires_subprocess, is_emscripten, is_wasi)
|
||||
requires_subprocess, is_emscripten, is_wasi,
|
||||
requires_venv_with_pip)
|
||||
from test.support.os_helper import (can_symlink, EnvironmentVarGuard, rmtree)
|
||||
import unittest
|
||||
import venv
|
||||
|
@ -619,9 +620,7 @@ class EnsurePipTest(BaseTest):
|
|||
if not system_site_packages:
|
||||
self.assert_pip_not_installed()
|
||||
|
||||
# Issue #26610: pip/pep425tags.py requires ctypes
|
||||
@unittest.skipUnless(ctypes, 'pip requires ctypes')
|
||||
@requires_zlib()
|
||||
@requires_venv_with_pip()
|
||||
def test_with_pip(self):
|
||||
self.do_test_with_pip(False)
|
||||
self.do_test_with_pip(True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue