fix unorderable types as reported by Ralf Schmitt

This commit is contained in:
holger krekel
2011-12-14 10:56:51 +00:00
parent 94e31e414a
commit 82ba764bb6
7 changed files with 49 additions and 7 deletions

View File

@@ -156,6 +156,7 @@ class PyobjMixin(object):
obj = obj.place_as
self._fslineno = py.code.getfslineno(obj)
assert isinstance(self._fslineno[1], int), obj
return self._fslineno
def reportinfo(self):
@@ -173,6 +174,7 @@ class PyobjMixin(object):
else:
fspath, lineno = self._getfslineno()
modpath = self.getmodpath()
assert isinstance(lineno, int)
return fspath, lineno, modpath
class PyCollectorMixin(PyobjMixin, pytest.Collector):