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

fix bug where black.assert_equivalent no longer raises an AssertionError #310

Merged
merged 1 commit into from
May 11, 2024

Conversation

spyoungtech
Copy link
Owner

psf/black#4270 changed black.assert_equivalent to raise an ASTSafetyError exception (a custom exception inheriting from Exception) so catching AssertionError no longer works when developing with recent versions of black

This change makes the code compatible with older and newer versions of black.

@spyoungtech spyoungtech changed the title fix bug introduced by where black.assert_equivalent no longer raises an AssertionError fix bug where black.assert_equivalent no longer raises an AssertionError May 11, 2024
@spyoungtech spyoungtech merged commit 50203d0 into main May 11, 2024
8 of 9 checks passed
@coveralls
Copy link

Coverage Status

coverage: 77.477%. remained the same
when pulling 1753204 on fix-pre-commit-hook
into de90e94 on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants