method: magic.AssertionError.__init__

*Not documented*
    def __init__(self, *args):

origin: magic.AssertionError

where:

changes in __dict__ after execution:

function source:

def __init__(self, *args):
    BuiltinAssertionError.__init__(self, *args)
    if args: 
        self.msg = str(args[0])
    else: 
        f = sys._getframe(1)
        try:
            source = py.code.Frame(f).statement
            source = str(source.deindent()).strip()
        except py.error.ENOENT:
            source = None
            # this can also occur during reinterpretation, when the
            # co_filename is set to "<run>".
        if source:
            self.msg = exprinfo.interpret(source, f, should_fail=True)
            if not self.args:
                self.args = (self.msg,)
        else:
            self.msg = None

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.0

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.1

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py

traceback magic.AssertionError.__init__.2

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.3

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py

traceback magic.AssertionError.__init__.4

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_exprinfo.py

traceback magic.AssertionError.__init__.5

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py

traceback magic.AssertionError.__init__.6

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.7

called in None</home/johnny/projects/merlinux/py/dist/py/code/testing/test_source.py:177>

traceback magic.AssertionError.__init__.8

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py

traceback magic.AssertionError.__init__.9

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py

traceback magic.AssertionError.__init__.10

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.11

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.12

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py

traceback magic.AssertionError.__init__.13

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.14

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py

traceback magic.AssertionError.__init__.15

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.16

called in abc-123</home/johnny/projects/merlinux/py/dist/py/code/source.py:214>

traceback magic.AssertionError.__init__.17

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.18

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.19

called in /home/johnny/projects/merlinux/py/dist/py/documentation/example/pytest/failure_demo.py

traceback magic.AssertionError.__init__.20