Commit 6ffc9d5a authored by Hojin Lee's avatar Hojin Lee
Browse files

fix type casting of references

parent f948e989
...@@ -1445,7 +1445,7 @@ class ConfigurableTask(Task): ...@@ -1445,7 +1445,7 @@ class ConfigurableTask(Task):
# we expect multiple_targets to be a list. # we expect multiple_targets to be a list.
elif self.multiple_target: elif self.multiple_target:
gold = list(gold) gold = list(gold)
elif type(gold) != type(result): elif type(gold) != type(result) and not isinstance(result, List):
# cast gold to the same type as result # cast gold to the same type as result
gold = type(result)(gold) gold = type(result)(gold)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment