[Python-ideas] introspectable assertions (original) (raw)

Ronny Pfannschmidt opensource at ronnypfannschmidt.de
Thu Feb 19 08:16:33 CET 2015


Hi,

the idea is that if

-> from future import assertion_introspection

then

-> assert foo.bar(baz) == abc.def(), msg DetailedAssertionError: {msg} foo -> <foo...> baz -> <bar ...> foo.bar() -> <...> abc -> ... abc.def() -> ... foo.bar(baz) == abc.def() -> ...

it would help introspection and testing utilities

-- Ronny



More information about the Python-ideas mailing list