def freeze_includes():
 import py
 import _pytest
 result = list(_iter_all_modules(py))
 result += list(_iter_all_modules(_pytest))
 return result

def freeze_includes ( ) : import py import _pytest result = list ( _iter_all_modules ( py ) ) result += list ( _iter_all_modules ( _pytest ) ) return result
returns a list of module names used by py .