Commit 5f205bd5 authored by baberabb's avatar baberabb
Browse files

list(gold) if `multiple_target`

parent 680c5686
......@@ -674,7 +674,6 @@ class ConfigurableTask(Task):
check_choices = test_choice
else:
check_choices = [test_target]
# TODO: is this only for multiple-choice?
if self.config.doc_to_choice is not None:
for choice in check_choices:
choice_has_whitespace = True if choice[0].isspace() else False
......@@ -1070,7 +1069,7 @@ class ConfigurableTask(Task):
gold = choices[gold]
# we expect multiple_targets to be a list.
elif self.multiple_target:
pass
gold = list(gold)
else:
gold = str(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