gak / pycallgraph

pycallgraph is a Python module that creates call graphs for Python programs.
GNU General Public License v2.0
1.82k stars 336 forks source link

Tests are failing #161

Open Krejdom opened 8 years ago

Krejdom commented 8 years ago

Hi, I am not able to run the tests. Do you know, what is wrong?

` def init(self, **kwargs): self.node_color_func = self.node_color self.edge_color_func = self.edge_color self.node_label_func = self.node_label self.edge_label_func = self.edge_label

    # Update the defaults with anything from kwargs
  [setattr(self, k, v) for k, v in kwargs.iteritems()]

E AttributeError: 'dict' object has no attribute 'iteritems'

pycallgraph/output/output.py:19: AttributeError `

asl97 commented 8 years ago

that test is written in python 2, it should work in python 3 if you rewrite it using items: [setattr(self, k, v) for k, v in kwargs.items()]