Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1794

Fix use of generators in test_cdp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • make test
    • None

      generators in python are a great tool for reducing memory utilization in python.  

      in test_cdp, the generators are wrapped in list(), effectively negating the benefit of using the generator.  

       

      Rewrite tests to use generators using the idiom:

      for count, node, reason in show_errors():

       

       

            fivarga Filip Varga
            pvinci Paul Vinciguerra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: