method: test.collect.Generator.buildname2items

*Not documented*
    def buildname2items(self): 

origin: test.collect.Generator

where:

changes in __dict__ after execution:

exceptions that might appear during execution:

function source:

def buildname2items(self): 
    d = {} 
    for i, x in py.builtin.enumerate(self.obj()): 
        call, args = self.getcallargs(x)
        if not callable(call): 
            raise TypeError("yielded test %r not callable" %(call,))
        name = "[%d]" % i
        #XXX name = "%s(%r)" %(call.__name__, str(args and args[0] or i)) # # XXX
        d[name] = self.Function(name, self, args, obj=call, sort_value = i)
    return d

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback test.collect.Generator.buildname2items.0

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback test.collect.Generator.buildname2items.1

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback test.collect.Generator.buildname2items.2

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback test.collect.Generator.buildname2items.3

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback test.collect.Generator.buildname2items.4