pycallgraph icon indicating copy to clipboard operation
pycallgraph copied to clipboard

Tests are failing

Open Krejdom opened this issue 8 years ago • 1 comments

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 `

Krejdom avatar Sep 05 '16 08:09 Krejdom

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()]

asl97 avatar Sep 05 '16 13:09 asl97