Replaces reduce with six.moves.reduce for py 2/3 compatibility
This patch replaces "reduce" with "six.moves.reduce" to comply with
the newer python version i.e. python3.
Partially-Implements: Blueprint neutron-python3
Change-Id: Iddb52d86665123ade5920bc09f7802e29440e7dd
diff --git a/neutron/tests/tempest/common/generator/base_generator.py b/neutron/tests/tempest/common/generator/base_generator.py
index 5ac927c..6db3f24 100644
--- a/neutron/tests/tempest/common/generator/base_generator.py
+++ b/neutron/tests/tempest/common/generator/base_generator.py
@@ -176,7 +176,7 @@
expected_result = generator_result[2]
element = path.pop()
if len(path) > 0:
- schema_snip = reduce(dict.get, path, schema)
+ schema_snip = six.moves.reduce(dict.get, path, schema)
schema_snip[element] = invalid_snippet
else:
schema[element] = invalid_snippet