summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Herve <therve@redhat.com>2017-06-29 10:02:03 +0200
committerThomas Herve <therve@redhat.com>2017-06-29 10:02:03 +0200
commitf54f76ceae36200e4bd7fafd39748fd043c51801 (patch)
tree41e5bc77731e2ff7bc7c2a87cf88c04a316844c4
parente0a670a03050e41d1c82f54e44f7aad5db28d682 (diff)
downloaddesignate-f54f76ceae36200e4bd7fafd39748fd043c51801.tar.gz
Fix task tests under py3
This makes all the unit tests pass under python3 \o/ Change-Id: I6f145ece1b0ce12843e0b9754467a79f88770bdc
-rw-r--r--designate/tests/unit/test_producer/test_tasks.py2
-rw-r--r--tests-py3.txt2
-rw-r--r--tox.ini2
3 files changed, 2 insertions, 4 deletions
diff --git a/designate/tests/unit/test_producer/test_tasks.py b/designate/tests/unit/test_producer/test_tasks.py
index f3138ef4..cf8b6ff7 100644
--- a/designate/tests/unit/test_producer/test_tasks.py
+++ b/designate/tests/unit/test_producer/test_tasks.py
@@ -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)
diff --git a/tests-py3.txt b/tests-py3.txt
deleted file mode 100644
index c8599190..00000000
--- a/tests-py3.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-# Blacklist of tests failing on Python 3
-designate.tests.unit.test_producer.test_tasks
diff --git a/tox.ini b/tox.ini
index 3683d448..ba697606 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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