Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation#93641

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
zooba merged 19 commits intopython:mainfromneonene:intree
Jun 16, 2022
Merged
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
1ae7f87
gh-91985: Ensure in-tree builds override platstdlib_dir in every path…
neoneneJun 9, 2022
0be59f2
test, etc.
neoneneJun 11, 2022
19fb85d
less redundant test
neoneneJun 11, 2022
f336113
Fix test (place a landmark)
neoneneJun 11, 2022
0e75c9c
assert()
neoneneJun 12, 2022
0df156b
add case
neoneneJun 12, 2022
b085759
add platstdlib_dir
neoneneJun 12, 2022
bc861bf
reword
neoneneJun 13, 2022
5cb5e2b
remove test
neoneneJun 13, 2022
3051b55
new test case in test_embed
neoneneJun 13, 2022
4f08be9
reword
neoneneJun 13, 2022
6bb3323
rerun test
neoneneJun 13, 2022
19e1428
apply suggested changes
neoneneJun 14, 2022
1919590
move stdlib upper
neoneneJun 14, 2022
8b15917
comment, etc.
neoneneJun 15, 2022
bf5bc28
less lines
neoneneJun 15, 2022
39c851c
putenv()
neoneneJun 15, 2022
500cb81
move comment upper
neoneneJun 15, 2022
7636f73
a comment
neoneneJun 16, 2022
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
PrevPrevious commit
NextNext commit
remove test
  • Loading branch information
@neonene
neonene committedJun 13, 2022
commit5cb5e2bce2c908df1461f7ea78fca2b69a3a4b0a
42 changes: 0 additions & 42 deletionsLib/test/test_getpath.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -239,48 +239,6 @@ def test_buildtree_pythonhome_win32(self):
actual = getpath(ns, expected)
self.assertEqual(expected, actual)

def test_run_in_tree_build_win32(self):
"Test _is_python_build fields with invalid cases.(gh-91985)"
def read_pathconfig(config, attr):
if _Py_path_config[attr] >= 0 and config[attr] <= 0:
config[attr] = _Py_path_config[attr]

def update_pathconfig(config, attr):
if config[attr] > 0:
_Py_path_config[attr] = config[attr]

for flags in [(0,-1), (-1, 0), (-1,-1), (-10, 0), [-10, 5], [5,-10]]:
_Py_path_config = dict(
_is_python_build=flags[0],
)
ns = MockNTNamespace(
argv0=r"C:\CPython\PCbuild\amd64\python.exe",
)
ns.add_known_file(r"C:\CPython\PCbuild\amd64\pybuilddir.txt", [""])
ns['config'].update(
home=r"C:\CPython", # turn on 'home_was_set'
_is_python_build=flags[1],
)
# _PyConfig_InitPathConfig emulation
read_pathconfig(ns['config'], '_is_python_build')
if isinstance(flags, tuple):
expected = dict(
_is_python_build=ns['config']['_is_python_build'],
build_prefix=None,
platstdlib_dir=r"C:\CPython\DLLs",
)
else:
flags = (1, 1)
expected = dict(
_is_python_build=flags[1],
build_prefix=r"C:\CPython",
platstdlib_dir=r"C:\CPython\PCbuild\amd64",
)
actual = getpath(ns, expected)
self.assertEqual(actual, expected)
update_pathconfig(actual, '_is_python_build')
self.assertEqual(_Py_path_config['_is_python_build'], flags[0])

def test_normal_posix(self):
"Test a 'standard' install layout on *nix"
ns = MockPosixNamespace(
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp