#NEWLINE# def run_tests( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# import pytest #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# raise RuntimeError ( 'py.test is not installed, run: pip install pytest' ) #NEWLINE# #UNINDENT# params = { #NEWLINE# #INDENT# 'args' : self . test_args , #NEWLINE# #UNINDENT# } #NEWLINE# if self . cov : #NEWLINE# #INDENT# params [ 'args' ] += self . cov #NEWLINE# #UNINDENT# if self . junitxml : #NEWLINE# #INDENT# params [ 'args' ] += self . junitxml #NEWLINE# #UNINDENT# params [ 'args' ] += [ '--doctest-modules' , MAIN_PACKAGE , '-s' ] #NEWLINE# errno = pytest . main ( ** self ) #NEWLINE# sys . exit ( errno )