ok
Direktori : /proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/jinja2/testsuite/ |
Current File : //proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/jinja2/testsuite/debug.pyc |
� ,��Qc @ sp d Z d d l Z d d l m Z m Z d d l m Z m Z e d e � Z d e f d � � YZ d � Z d S( s� jinja2.testsuite.debug ~~~~~~~~~~~~~~~~~~~~~~ Tests the debug system. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. i����N( t JinjaTestCaset filesystem_loader( t Environmentt TemplateSyntaxErrort loadert DebugTestCasec B s# e Z d � Z d � Z d � Z RS( c s2 � f d � } t j d � � | j | d � d S( Nc s � j d d � � d S( Nt failc S s d d S( Ni i ( ( ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyt <lambda> s ( t render( ( t tmpl( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyt test s s broken.htmls� File ".*?broken.html", line 2, in (top-level template code|<module>) \{\{ fail\(\) \}\} File ".*?debug.pyc?", line \d+, in <lambda> tmpl\.render\(fail=lambda: 1 / 0\) ZeroDivisionError: (int(eger)? )?division (or modulo )?by zero ( t envt get_templatet assert_traceback_matches( t selfR ( ( R s: /usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyt test_runtime_error s c C s | j d � d � d S( Nc S s t j d � S( Ns syntaxerror.html( R R ( ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyR '