Fix a test fail because of the unicode changes

This commit is contained in:
Dave Halter
2017-12-24 03:53:27 +01:00
parent fdd405f552
commit 96a4fd7bd6

View File

@@ -125,13 +125,14 @@ class BaseDefinition(object):
Finally, here is what you can get from :attr:`type`: Finally, here is what you can get from :attr:`type`:
>>> defs[0].type >>> defs = [str(d.type) for d in defs] # It's unicode and in Py2 has u before it.
>>> defs[0]
'module' 'module'
>>> defs[1].type >>> defs[1]
'class' 'class'
>>> defs[2].type >>> defs[2]
'instance' 'instance'
>>> defs[3].type >>> defs[3]
'function' 'function'
""" """