Merge "Fix task tests under py3"

This commit is contained in:
Jenkins 2017-07-13 06:19:35 +00:00 committed by Gerrit Code Review
commit 902505e98b
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