Skip to content

Return SyntaxError with null byte input in eval.#5013

Merged
DimitrisJim merged 2 commits into
RustPython:mainfrom
DimitrisJim:non-utf8-failure
Jun 17, 2023
Merged

Return SyntaxError with null byte input in eval.#5013
DimitrisJim merged 2 commits into
RustPython:mainfrom
DimitrisJim:non-utf8-failure

Conversation

@DimitrisJim
Copy link
Copy Markdown
Member

@DimitrisJim DimitrisJim commented Jun 17, 2023

Can't find anything in Python's changelogs but it appears eval now returns a SyntaxError in this case, lets see what the tests think.

@DimitrisJim
Copy link
Copy Markdown
Member Author

DimitrisJim commented Jun 17, 2023

lol, mac uses 3.11.3 which doesn't have the change. I'll just make the test check for either a value error or a syntax error and add a todo.

@DimitrisJim DimitrisJim merged commit 5c81649 into RustPython:main Jun 17, 2023
@DimitrisJim DimitrisJim deleted the non-utf8-failure branch June 17, 2023 13:58
@DimitrisJim DimitrisJim mentioned this pull request Jun 17, 2023
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.

1 participant