Skip to content

Comments

tests: contextlib.suppress does not return anything#9444

Merged
Secrus merged 1 commit intopython-poetry:mainfrom
radoering:tests/fix-switch-working-directory-exception-handling
May 27, 2024
Merged

tests: contextlib.suppress does not return anything#9444
Secrus merged 1 commit intopython-poetry:mainfrom
radoering:tests/fix-switch-working-directory-exception-handling

Conversation

@radoering
Copy link
Member

While writing a test, I noticed that it passed although it was supposed to fail. The AssertionError was swallowed in the switch_working_directory context manager. I found no reference that contextlib.suppress returns anything. Therefore, I replaced this bogus expection handling.

@radoering radoering requested a review from a team May 26, 2024 16:18
@radoering radoering mentioned this pull request May 26, 2024
2 tasks
@Secrus Secrus merged commit b32a260 into python-poetry:main May 27, 2024
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2024
@radoering radoering deleted the tests/fix-switch-working-directory-exception-handling branch August 16, 2025 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants