def filter_traceback(entry):
 raw_filename = entry.frame.code.raw.co_filename
 is_generated = (('<' in raw_filename) and ('>' in raw_filename))
 if is_generated:
  return False
 p = py.path.local(entry.path)
 return ((p != cutdir1) and (not p.relto(cutdir2)) and (not p.relto(cutdir3)))

def filter_traceback ( entry ) : raw_filename = entry . frame . code . raw . co_filename is_generated = ( ( '<' in raw_filename ) and ( '>' in raw_filename ) ) if is_generated : return False p = py . path . local ( entry . path ) return ( ( p != cutdir1 ) and ( not p . relto ( cutdir2 ) ) and ( not p . relto ( cutdir3 ) ) )
return true if a tracebackentry instance should be removed from tracebacks: * dynamically generated code ; * internal traceback from pytest or its internal libraries .