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

Appearance settings

[3.14] gh-136264: Fix --relative-paths for PEP 739's build-details.json (GH-138510)#138638

Merged
hugovk merged 4 commits intopython:3.14python/cpython:3.14from
miss-islington:backport-057ee17-3.14miss-islington/cpython:backport-057ee17-3.14Copy head branch name to clipboard
Sep 9, 2025
Merged

[3.14] gh-136264: Fix --relative-paths for PEP 739's build-details.json (GH-138510)#138638
hugovk merged 4 commits intopython:3.14python/cpython:3.14from
miss-islington:backport-057ee17-3.14miss-islington/cpython:backport-057ee17-3.14Copy head branch name to clipboard

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 8, 2025

  • KeyError is not raised for defaultdict
  • Fix relative paths on different drives on Windows
  • Add a round-trip test
    (cherry picked from commit 057ee17)

Co-authored-by: Adam Turner 9087854+AA-Turner@users.noreply.github.com
Co-authored-by: Itamar Oren itamarost@gmail.com

….json (pythonGH-138510)

* KeyError is not raised for defaultdict
* Fix relative paths on different drives on Windows
* Add a round-trip test
(cherry picked from commit 057ee17)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
hugovk
hugovk previously requested changes Sep 8, 2025
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Erm, let's have a passing CI before merge :)

test test_build_details crashed -- Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/home/runner/work/cpython/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/home/runner/work/cpython/cpython/Lib/test/test_build_details.py", line 182, in <module>
    @unittest.skipIf(is_wasm32, 'Feature not available on WebAssembly builds')
                     ^^^^^^^^^
NameError: name 'is_wasm32' is not defined. Did you mean: 'is_wasi'?

@bedevere-app
Copy link

bedevere-app bot commented Sep 8, 2025

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Lib/test/test_build_details.py Show resolved Hide resolved
@AA-Turner
Copy link
Member

#138643 is a backport of is_wasm32 (#136815) to 3.14, which would be an alternative fix.

A

@AA-Turner
Copy link
Member

Tests now passing

Lib/test/test_build_details.py Outdated Show resolved Hide resolved
@AA-Turner
Copy link
Member

I didn't expect the Spanish Inquisition!

A

@AA-Turner
Copy link
Member

Oh boo the fun trigger hasn't worked.

I have made the requested changes; please review again

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hugovk hugovk merged commit 3894503 into python:3.14 Sep 9, 2025
56 of 57 checks passed
@miss-islington miss-islington deleted the backport-057ee17-3.14 branch January 2, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.