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

Add a test for lpython emulation mode #2226

Merged
merged 3 commits into from
Jul 30, 2023
Merged

Conversation

certik
Copy link
Contributor

@certik certik commented Jul 30, 2023

The new test fails due to #2222. We first verify that it fails at the CI and then we fix it with a commit.

Fixes #2222.

@certik
Copy link
Contributor Author

certik commented Jul 30, 2023

It's the

@ccall
def f2(a: i64):
    pass

function that doesn't return anything and its pure Python implementation that caused the failure in #2222. We will fix it in the next commit.

This is needed in order to use the .emulation dict in lpython.CTypes.
The previous commit fails and this commit fixes it.

Fixes lcompilers#2222.
@certik
Copy link
Contributor Author

certik commented Jul 30, 2023

Things correctly fail, so the test is a good one. Now we pushed in a commit that fixes it.

@certik certik merged commit 1bc5ad6 into lcompilers:main Jul 30, 2023
9 checks passed
@certik certik deleted the emutest branch July 30, 2023 03:36
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.

Bug in LPython 0.19.0 emulation mode: 'function' object has no attribute 'restype'
1 participant