method: test.collect.Instance.getmodpath

 return dotted module path (relative to the containing). 
    def getmodpath(self):

origin: test.collect.Collector

where:

function source:

def getmodpath(self):
    """ return dotted module path (relative to the containing). """ 
    inmodule = False 
    newl = []
    for x in self.listchain(): 
        if not inmodule and not isinstance(x, Module): 
            continue
        if not inmodule:  
            inmodule = True
            continue
        if newl and x.name[:1] in '([': 
            newl[-1] += x.name 
        else: 
            newl.append(x.name) 
    return ".".join(newl)