tests: use force_str() to encode item options (#36515)

This commit is contained in:
Frédéric Péters 2019-11-16 17:19:05 +01:00
parent 54d4b4686b
commit 1bb05944f8
1 changed files with 1 additions and 1 deletions

View File

@ -4456,7 +4456,7 @@ def test_form_autosave_with_items_field(pub):
fields.StringField(id='1', label='string', varname='foo'),
fields.PageField(id='2', label='2nd page', type='page'),
fields.ItemsField(id='3', label='items', type='items',
items=[x.encode(pub.site_charset) for x in (u'pomme', u'poire', u'pêche', u'abricot')]),
items=[force_str(x) for x in (u'pomme', u'poire', u'pêche', u'abricot')]),
]
formdef.enable_tracking_codes = True
formdef.store()