Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Can't resolve globals within ordered context #2

Description

@grandrew

See test file at tests/test_global_var.py

import ordered
import pytest

x = 0
def inc():
    global x
    x += 1

def run_inc():
    global x
    with ordered.orderedcontext():
        while x != 1:
            ordered.choice()()
    pass  # required due to current Python limitation


def test_endofframe():
    "Setting the breakpoint to line 13 should work"
    run_inc()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions