Skip to content

Conversation

github-actions[bot]
Copy link

This PR contains a snapshot of master from upstream master.

keuko and others added 3 commits May 20, 2025 18:54
Change-Id: I5295bba1e11f84217bb2b28ea4d92cb47812b778
Python 3.13 introduces a behavior change in unittest.mock.mock_open(),
which now calls close() when exiting the context manager
as described in bpo-44185 [1]. This causes additional mock calls to appear,
breaking strict mock_calls assertions.

This patch fix tests and add compatibility for Python 3.13.

From mock documentation [2]:
  "bpo-44185: unittest.mock.mock_open() will call the close() method
   of the file handle mock when it is exiting from the context manager.
   Patch by Samet Yaslan."

[1] https://bugs.python.org/issue44185
[2] https://mock.readthedocs.io/en/latest/changelog.html

Change-Id: Ib8e2a8a20a828c4c69deedd307c9b726f51489f8
We'll readd it later when introducing centos10 and rocky10.

Change-Id: I555deccfd7b58c05d0b62d7d200dcec97b2e6f7d
@github-actions github-actions bot requested a review from a team as a code owner May 26, 2025 06:22
@github-actions github-actions bot added automated Automated action performed by GitHub Actions synchronisation labels May 26, 2025
@priteau priteau closed this May 26, 2025
@priteau priteau reopened this May 26, 2025
@priteau priteau closed this May 27, 2025
@priteau priteau reopened this May 27, 2025
@priteau priteau merged commit 1cb3f5b into stackhpc/master May 27, 2025
7 of 8 checks passed
@priteau priteau deleted the upstream/master-2025-05-26 branch May 27, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated Automated action performed by GitHub Actions synchronisation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants