commit | 8bfa8a62ad12bd93bd6872a09342e049eda7dc3f | [log] [tgz] |
---|---|---|
author | QunyingRan <ran.qunying@zte.com.cn> | Sun Jul 03 17:49:14 2016 +0800 |
committer | QunyingRan <ran.qunying@zte.com.cn> | Tue Jul 05 10:28:11 2016 +0000 |
tree | 916d4f1f20a28e13eb3d10a9b0683f36b458d3ea | |
parent | aeeca5aba37763797b0abd95f2bf1581524ce820 [diff] |
next() is incompatible in test_network_ip_availability.py Replace iter.next() with next(iter) Change-Id: I43dfda97451d2893a5fca480b79f14da479c01df Closes-Bug: #1598527
diff --git a/neutron/tests/tempest/api/test_network_ip_availability.py b/neutron/tests/tempest/api/test_network_ip_availability.py index 74395ea..6a81128 100644 --- a/neutron/tests/tempest/api/test_network_ip_availability.py +++ b/neutron/tests/tempest/api/test_network_ip_availability.py
@@ -86,7 +86,7 @@ mask_bits = config.safe_get_config_value( 'network', 'project_network_v6_mask_bits') - subnet_cidr = cidr.subnet(mask_bits).next() + subnet_cidr = next(cidr.subnet(mask_bits)) prefix_len = subnet_cidr.prefixlen subnet = self.create_subnet(network, cidr=subnet_cidr,