Beispiel #1
0
def test_in_macro_call():
    def f():
        pass
    with in_macro_call(f, True, True):
        assert f.macro_globals
        assert f.macro_locals
    assert not hasattr(f, 'macro_globals')
    assert not hasattr(f, 'macro_locals')
Beispiel #2
0
def test_in_macro_call():
    def f():
        pass

    with in_macro_call(f, True, True):
        assert f.macro_globals
        assert f.macro_locals
    assert not hasattr(f, "macro_globals")
    assert not hasattr(f, "macro_locals")