Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CallInfo.__repr__ raises AttributeError if called before __init__ is finished #3554
py.test version: 3.6.0
import sys from traceback import print_list, StackSummary, walk_stack def print_stack(): stack = StackSummary.extract(walk_stack(sys._getframe().f_back), capture_locals=True) stack.reverse() print_list(stack) def test_bla(): print_stack() # ^ This will crash with `AttributeError: 'CallInfo' object has no attribute 'result'` assert 1 == 1
GitMate.io thinks possibly related issues are #1259 (AttributeError raised from junitxml with pytest-flakes and pytest-pep8), #3099 (AttributeError: catch_log_handler), #547 (capsys: AttributeError is raised and output is not captured when using the '-s' option), #372 (raises regexp), and #2435 (f).