Skip to content

Fix unwrap issue causing panic#4362

Merged
DimitrisJim merged 2 commits intoRustPython:mainfrom
rileysu:main
Dec 27, 2022
Merged

Fix unwrap issue causing panic#4362
DimitrisJim merged 2 commits intoRustPython:mainfrom
rileysu:main

Conversation

@rileysu
Copy link
Contributor

@rileysu rileysu commented Dec 26, 2022

This fixes #4312.

@youknowone
Copy link
Member

@Snowapril could you review this change?

Copy link
Contributor

@Snowapril Snowapril left a comment

Choose a reason for hiding this comment

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

LGTM! I cannot remember why did I use unwrap there haha..

Copy link
Member

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

Great, thanks! This also appears to fix two tests (test_issue45826 and test_issue45826_focused) in test_exception.py, un-comment both of them (and remove the TODO: RUSTPYTHON comment preceeding them in order for them to now run.

Copy link
Member

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

great, thanks!

@DimitrisJim DimitrisJim merged commit 64a14ec into RustPython:main Dec 27, 2022
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.

Checking unmatched "raiseregex" leads to rustpython panicked

4 participants