diff options
author | Thomas Herve <therve@redhat.com> | 2017-06-29 10:02:03 +0200 |
---|---|---|
committer | Thomas Herve <therve@redhat.com> | 2017-06-29 10:02:03 +0200 |
commit | f54f76ceae36200e4bd7fafd39748fd043c51801 (patch) | |
tree | 41e5bc77731e2ff7bc7c2a87cf88c04a316844c4 | |
parent | e0a670a03050e41d1c82f54e44f7aad5db28d682 (diff) | |
download | designate-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.py | 2 | ||||
-rw-r--r-- | tests-py3.txt | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
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 @@ -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 |