Skip to content

Can't resolve globals within ordered context #2

@grandrew

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()

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