Fix task tests under py3

This makes all the unit tests pass under python3 \o/

Change-Id: I6f145ece1b0ce12843e0b9754467a79f88770bdc
This commit is contained in:
Thomas Herve 2017-06-29 10:02:03 +02:00
parent e0a670a030
commit f54f76ceae
3 changed files with 2 additions and 4 deletions

View File

@ -91,7 +91,7 @@ class PeriodicTest(TaskTest):
central.find_zones.return_value = items
# Iterate through the items causing the "paging" to be done.
map(lambda i: next(iterer), items)
list(map(lambda i: next(iterer), items))
central.find_zones.assert_called_once_with(
ctxt, {"shard": "BETWEEN 0,9"}, limit=100)

View File

@ -1,2 +0,0 @@
# Blacklist of tests failing on Python 3
designate.tests.unit.test_producer.test_tasks

View File

@ -35,7 +35,7 @@ commands =
[testenv:py35]
commands =
{[testenv]commands}
ostestr --blacklist_file=tests-py3.txt '{posargs}'
ostestr '{posargs}'
[testenv:docs]
commands = rm -rf doc/build