neutron/neutron/tests/unit/tests
Adrien Vergé 5836bbca83 Python 3: Use six.moves.range
The function `xrange` was renamed to `range` in Python 3.

* Remove `xrange` occurences so that Python 3 tests can pass. Use
  `six.moves.range` instead to get the right function in both cases.
* Generalize the use of the efficient `range` (ex-`xrange`) in
  critical sections (when iterating over large lists).
* Simplify code.
* Add a hacking check to prevent future usage of `xrange`.

Change-Id: I080acaaa1d4753619fbbb76dddba6d946d84e73f
Partially implements: blueprint neutron-python3
2015-05-19 17:32:17 +02:00
..
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_base.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_post_mortem_debug.py Python 3: Use six.moves.range 2015-05-19 17:32:17 +02:00