[Subversion] / BytecodeAssembler / test_assembler.py  

View of /BytecodeAssembler/test_assembler.py

Parent Directory | Revision Log
Revision: 2571 - (download) (as text)
Mon Aug 4 21:47:49 2008 UTC (15 years, 8 months ago) by pje
File size: 331 byte(s)
Add ListComp, LCAppend, If, Function, For, UnpackSequence,
LocalAssign, YieldStmt, nested scopes, Code.from_spec(),
and more.  See README for details. 
import sys
if sys.version<'2.4':
    # Python 2.3 disassembler is broken wrt co_lnotab; use a later version
    import _dis
    sys.modules['dis'] = _dis
    
def additional_tests():
    import doctest
    return doctest.DocFileSuite(
        'README.txt',
        optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE,
    )


cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help