[Subversion] / BytecodeAssembler / test_assembler.py  

View of /BytecodeAssembler/test_assembler.py

Parent Directory | Revision Log
Revision: 2768 - (download) (as text)
Thu Apr 9 17:40:32 2015 UTC (5 years, 10 months ago) by pje
File size: 465 byte(s)
Add 3.x slice support; fix misc. shallow test failures
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

if sys.version<'3':
    from peak.util.assembler import NotAConstant
    NotAConstant.__name__ = "peak.util.assembler.NotAConstant"

def additional_tests():
    import doctest
    return doctest.DocFileSuite(


Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help