invoke magic, currently you can specify:
assertion patches the builtin AssertionError to try to give
more meaningful AssertionErrors, which by means
of deploying a mini-interpreter constructs
a useful error message.
def invoke(assertion=False, compile=False):
origin:<UNKNOWN>
where:
function source:
def invoke(assertion=False, compile=False):
""" invoke magic, currently you can specify:
assertion patches the builtin AssertionError to try to give
more meaningful AssertionErrors, which by means
of deploying a mini-interpreter constructs
a useful error message.
"""
if assertion:
from py.__.magic import assertion
assertion.invoke()
if compile:
py.magic.patch(cpy_builtin, 'compile', py.code.compile )
called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_invoke.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/test/session.py
called in None</home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_slave.py:165>
called in /home/johnny/projects/merlinux/py/dist/py/test/session.py
called in /home/johnny/projects/merlinux/py/dist/py/test/session.py
called in None</home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_slave.py:139>
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_invoke.py
called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_assertion.py
called in /home/johnny/projects/merlinux/py/dist/py/test/session.py
called in None</home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_slave.py:175>
called in /home/johnny/projects/merlinux/py/dist/py/test/session.py
called in /home/johnny/projects/merlinux/py/dist/py/test/session.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rsession.py