def runtests(args=None):
 import pytest
 import os
 try:
  import faulthandler
  faulthandler.enable()
 except ImportError:
  pass
 rootdir = os.path.join(os.path.dirname(__file__), os.pardir)
 os.chdir(rootdir)
 return pytest.main(args=args)

def runtests ( args = None ) : import pytest import os try : import faulthandler faulthandler . enable ( ) except ImportError : pass rootdir = os . path . join ( os . path . dirname ( __file__ ) , os . pardir ) os . chdir ( rootdir ) return pytest . main ( args = args )
run the selected tests .