def reinterpret(self): """Reinterpret the failing statement and returns a detailed information about what operations are performed.""" from _pytest.assertion.reinterpret import reinterpret if self.exprinfo is None: source = py.builtin._totext(self.statement).strip() x = reinterpret(source, self.frame, should_fail=True) if not py.builtin._istext(x): raise TypeError("interpret returned non-string %r" % (x, )) self.exprinfo = x return self.exprinfo
def reinterpret(self): """Reinterpret the failing statement and returns a detailed information about what operations are performed.""" from _pytest.assertion.reinterpret import reinterpret if self.exprinfo is None: source = py.builtin._totext(self.statement).strip() x = reinterpret(source, self.frame, should_fail=True) if not py.builtin._istext(x): raise TypeError("interpret returned non-string %r" % (x,)) self.exprinfo = x return self.exprinfo
def interpret(expr): return reinterpret.reinterpret(expr, py.code.Frame(sys._getframe(1)))
def interpret(expr): return reinterpret.reinterpret(expr, _pytest._code.Frame(sys._getframe(1)))
def interpret(expr): return reinterpret.reinterpret(expr, py.code.Frame(sys._getframe(1)))
def interpret(expr): return reinterpret.reinterpret(expr, _pytest._code.Frame(sys._getframe(1)))