trace_commentor/tests/test_variables.py
2024-04-22 16:43:21 +08:00

22 lines
336 B
Python

from test_utils import *
def test_assign():
@Commentor("<return>")
def target():
myint = 7
print(myint)
asserteq_or_print(
target(), '''
def target():
myint = 7
print(myint)
"""
<callable> : print
7 : myint
None : print(myint)
"""
''')