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

cross-loop test failed #37

Open
igolotin opened this issue Oct 26, 2021 · 0 comments
Open

cross-loop test failed #37

igolotin opened this issue Oct 26, 2021 · 0 comments

Comments

@igolotin
Copy link

igolotin commented Oct 26, 2021

I had tried to build the latest version since PyPI contains outdated one. The unit test failed twice when expecting SyntaxError protection against make goto in a loop scope.

    def test_jump_into_loop():
        def func():
            for i in range(10):
                label .loop
            goto .loop

>       pytest.raises(SyntaxError, with_goto, func)
E       Failed: DID NOT RAISE <class 'SyntaxError'>

I checked the code manually in the ipython, the func really avoid raising exceptions and hangs the python if called.

platform win32 -- Python 3.9.6, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
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

No branches or pull requests

1 participant