tests: use force_str() to encode item options (#36515)
This commit is contained in:
parent
54d4b4686b
commit
1bb05944f8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue