def test_repr_frame(): frame = foo() assert repr_frame(frame) == '<string>:9' assert repr_frame(frame.f_back) == '<string>:6'