summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/src
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-18 19:24:38 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-19 15:15:41 +0100
commitc321abec1294f0a76defa9b794edfbf05cded588 (patch)
tree77d5b83f88c0fa57a8200e4dcb0b7a91d7c9b784 /roles/lib_utils/src
parente7cbe87fd35963666f8007b36a5168ffd84f6107 (diff)
downloadopenshift-c321abec1294f0a76defa9b794edfbf05cded588.tar.gz
openshift-c321abec1294f0a76defa9b794edfbf05cded588.tar.bz2
openshift-c321abec1294f0a76defa9b794edfbf05cded588.tar.xz
openshift-c321abec1294f0a76defa9b794edfbf05cded588.zip
Fix tests on Python 3
Unlike in Python 2: - `range` doesn't return a list. - `dict.keys` doesn't return a list.
Diffstat (limited to 'roles/lib_utils/src')
-rwxr-xr-xroles/lib_utils/src/test/unit/yedit_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_utils/src/test/unit/yedit_test.py b/roles/lib_utils/src/test/unit/yedit_test.py
index 2793c5c1a..ed07ac96e 100755
--- a/roles/lib_utils/src/test/unit/yedit_test.py
+++ b/roles/lib_utils/src/test/unit/yedit_test.py
@@ -256,7 +256,7 @@ class YeditTest(unittest.TestCase):
def test_pop_list_item_2(self):
'''test dict value with none value'''
- z = range(10)
+ z = list(range(10))
yed = Yedit(content=z, separator=':')
yed.pop('', 5)
z.pop(5)