Logo Search packages:      
Sourcecode: pycairo version File versions  Download package

def examples_test::test_examples (  )
run non-gui example scripts and check they exit successfully.

Definition at line 14 of file examples_test.py.

                   :
    '''run non-gui example scripts and check they exit successfully.
    '''
    os.chdir(os.path.join(os.path.dirname(__file__), '..', 'examples'))
    for f in (x for x in os.listdir('.') if x.endswith('.py')):
        retcode = subprocess.call('python %s' % f, shell=True)
        assert retcode == 0, 'Error: {0} retcode == {1}'.format(f, retcode)



Generated by  Doxygen 1.6.0   Back to index