summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-02-10 14:32:17 +0100
committerMartin Basti <mbasti@redhat.com>2017-02-10 16:16:44 +0100
commit4965735382425356ece27e7827e2a91bc2ab2055 (patch)
tree85db82f65f444bbbd33c93eff439a7aa467a0109
parente6129a76e7093b8f9f7717e5f63ed06f9e9ef30a (diff)
downloadfreeipa-4965735382425356ece27e7827e2a91bc2ab2055.tar.gz
freeipa-4965735382425356ece27e7827e2a91bc2ab2055.tar.xz
freeipa-4965735382425356ece27e7827e2a91bc2ab2055.zip
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>
-rw-r--r--ipatests/test_ipalib/test_parameters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_ipalib/test_parameters.py b/ipatests/test_ipalib/test_parameters.py
index d0bab40ee..0a69f9109 100644
--- a/ipatests/test_ipalib/test_parameters.py
+++ b/ipatests/test_ipalib/test_parameters.py
@@ -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'"