X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Futil%2Fplotter.py;h=9ad5ce6e819cda54303094d08cf321aa0f4c798f;hb=d5b781271af50ba526332809bc632fe17ef6d5e5;hp=4e1a553ee8e7ce7fb65c83148c84282e495d3b5c;hpb=6096716dbc88a1d9e6a1be8cac477006225d890e;p=nepi.git diff --git a/test/util/plotter.py b/test/util/plotter.py index 4e1a553e..9ad5ce6e 100755 --- a/test/util/plotter.py +++ b/test/util/plotter.py @@ -118,20 +118,21 @@ class PlotterTestCase(unittest.TestCase): for iface in ifaces: ec.register_connection(link, iface) - fpath = ec.plot(persist = True) + fpath = ec.plot() statinfo = os.stat(fpath) size = statinfo.st_size self.assertTrue(size > 0) self.assertTrue(fpath.endswith(".png")) - fpath = ec.plot(persist = True, format = PFormats.DOT) + os.remove(fpath) + + fpath = ec.plot(format = PFormats.DOT) statinfo = os.stat(fpath) size = statinfo.st_size self.assertTrue(size > 0) self.assertTrue(fpath.endswith(".dot")) - print fpath - + os.remove(fpath) if __name__ == '__main__': unittest.main()