Commit cb8fe119 authored by Marius Gedminas's avatar Marius Gedminas

Fix half of testfsoids

In Python 2 str(SomeClass) returns "modulename.ClassName".

In Python 3 str(SomeClass) returns "<class 'modulename.ClassName'>".

We want the former.
parent b9e24eb7
...@@ -193,6 +193,8 @@ class Tracer(object): ...@@ -193,6 +193,8 @@ class Tracer(object):
ref2name[ref] = klass = get_class(r.data) ref2name[ref] = klass = get_class(r.data)
elif isinstance(klass, tuple): elif isinstance(klass, tuple):
ref2name[ref] = klass = "%s.%s" % klass ref2name[ref] = klass = "%s.%s" % klass
else:
klass = "%s.%s" % (klass.__module__, klass.__name__)
self._msg(oid, tid, "references", oid_repr(ref), klass, self._msg(oid, tid, "references", oid_repr(ref), klass,
"at", pos) "at", pos)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment