Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-128690: skip test_init_pyvenv_cfg on shared builds #128724

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
# sys
"MS_WINDOWS", "is_jython", "is_android", "is_emscripten", "is_wasi",
"is_apple_mobile", "check_impl_detail", "unix_shell", "setswitchinterval",
"has_runtime_library",
# os
"get_pagesize",
# network
Expand Down Expand Up @@ -536,6 +537,8 @@ def skip_android_selinux(name):
is_emscripten = sys.platform == "emscripten"
is_wasi = sys.platform == "wasi"

has_runtime_library = bool(hasattr(sys, 'dllhandle') or sysconfig.get_config_var('LD_LIBRARY'))

def skip_emscripten_stack_overflow():
return unittest.skipIf(is_emscripten, "Exhausts limited stack on Emscripten")

Expand Down
5 changes: 4 additions & 1 deletion Lib/test/test_embed.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Run the tests in Programs/_testembed.c (tests for the CPython embedding APIs)
from test import support
from test.libregrtest.utils import get_build_info
from test.support import import_helper, os_helper, threading_helper, MS_WINDOWS
from test.support import (
import_helper, os_helper, threading_helper, MS_WINDOWS, has_runtime_library
)
import unittest

from collections import namedtuple
Expand Down Expand Up @@ -1608,6 +1610,7 @@ def test_init_pybuilddir_win32(self):
api=API_COMPAT, env=env,
ignore_stderr=False, cwd=tmpdir)

@unittest.skipIf(has_runtime_library, "Test only available when static linking libpython")
def test_init_pyvenv_cfg(self):
# Test path configuration with pyvenv.cfg configuration file

Expand Down
Loading