Fix python 3.x compatibility regarding iterations on a dict
Error on travis-ci was:
AttributeError: 'dict' object has no attribute 'iteritems'
And actually it's been removed in python 3.x in favor of dict.items()
This commit is contained in:
parent
f4feec4727
commit
2cd3d5fb45
7 changed files with 14 additions and 14 deletions
|
|
@ -13,7 +13,7 @@ def test_decapitalize():
|
|||
"FooBar": "fooBar",
|
||||
"FOO BAR": "fOO BAR",
|
||||
}
|
||||
for before, after in cases.iteritems():
|
||||
for before, after in cases.items():
|
||||
decapitalize(before).should.equal(after)
|
||||
|
||||
@freeze_time("2015-01-01 12:00:00")
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ SCHEDULE_ACTIVITY_TASK_DECISION = {
|
|||
"taskList": { "name": "activity-task-list" },
|
||||
}
|
||||
}
|
||||
for key, value in ACTIVITY_TASK_TIMEOUTS.iteritems():
|
||||
for key, value in ACTIVITY_TASK_TIMEOUTS.items():
|
||||
SCHEDULE_ACTIVITY_TASK_DECISION["scheduleActivityTaskDecisionAttributes"][key] = value
|
||||
|
||||
# A test Domain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue