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:
1 parent
e6129a76e7
commit
4965735382
1 file changed
+2
-2
@@ -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'"
|
||||
|
||||
Reference in new issue
Block a user