Code in oidctst.op.func.check_support is doing a wrong comparison of types. It is using == instead of using issubclass.
The simple comparison tests starts failing once pyoidc drops support for python 2. The returned type will be simple str and not a past.types.basestring.basestring.
Anyway basestring from future library doesn't seem to be properly subclassed as it can only be compared to instances. This is not true for six.string_types, so I would recommend using those.
Code in
oidctst.op.func.check_support
is doing a wrong comparison of types. It is using==
instead of usingissubclass
.The simple comparison tests starts failing once pyoidc drops support for python 2. The returned type will be simple
str
and not apast.types.basestring.basestring
.Anyway
basestring
fromfuture
library doesn't seem to be properly subclassed as it can only be compared to instances. This is not true forsix.string_types
, so I would recommend using those.