| from vpp_papi_provider import VppPapiProvider |
| from pympler import tracker |
| tr = tracker.SummaryTracker() |
| The module provides functions for debugging test framework |
| def on_tear_down_class(cls): |
| objects = gc.get_objects() |
| with open(cls.tempdir + '/python_objects.txt', 'w') as f: |
| if isinstance(o, (VppPapiProvider, vpp_papi.VPP))] |
| objgraph.show_backrefs([o], max_depth=5, |
| refs = gc.get_referrers(o) |
| pp = pprint.PrettyPrinter(indent=2) |
| f.write("%s\n" % pp.pformat(o)) |
| f.write("%s\n" % pp.pformat(r)) |
| f.write("%s\n" % type(r)) |