mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
test_StrEnum: use int as bad type
bytes triggers a BytesWarning error. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
e6129a76e7
commit
4965735382
@ -1154,8 +1154,8 @@ class test_StrEnum(EnumChecker):
|
||||
_name = 'my_strenum'
|
||||
_datatype = unicode
|
||||
_test_values = u'Hello', u'naughty', u'nurse!'
|
||||
_bad_type_values = u'Hello', b'naughty', u'nurse!'
|
||||
_bad_type = bytes
|
||||
_bad_type_values = u'Hello', 1, u'nurse!'
|
||||
_bad_type = int
|
||||
_translation = u"values='Hello', 'naughty', 'nurse!'"
|
||||
_bad_values = u'Howdy', u'quiet', u'library!'
|
||||
_single_value_translation = u"value='Hello'"
|
||||
|
Loading…
Reference in New Issue
Block a user