Browse Source

python3: filters aren't lists.

The filter() builtin now returns a generator, rather than a list.
We need to explicitly convert the generators to a list for python3.
Nick Mathewson 5 years ago
parent
commit
386afd94bc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      scripts/chutney_tests/verify.py

+ 5 - 0
scripts/chutney_tests/verify.py

@@ -76,6 +76,11 @@ def _verify_traffic(network):
                      n._env['tag'].startswith('h') or
                      ('hs' in n._env.keys() and n._env['hs'] == 1),
                      network._nodes)
+    # Make sure these lists are actually lists.  (It would probably
+    # be better to do list comprehensions here.)
+    client_list = list(client_list)
+    exit_list = list(exit_list)
+    hs_list = list(hs_list)
     if len(client_list) == 0:
         print("  Unable to verify network: no client nodes available")
         return False