Revert refactor of old-style to new-style classes

As discussed in the mailing list, unfortunately this might break APIs
due to the subtle differences between new and old-style classes (see #2398).

This reverts commit d4afa1554b from PR #2179.
This commit is contained in:
Bruno Oliveira
2017-05-17 18:16:11 -03:00
parent 6f407ef308
commit d86c89e193
16 changed files with 45 additions and 51 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ def pytest_sessionstart(session):
def pytest_sessionfinish(session):
session._setupstate.teardown_all()
class NodeInfo(object):
class NodeInfo:
def __init__(self, location):
self.location = location
@@ -144,7 +144,7 @@ def call_runtest_hook(item, when, **kwds):
ihook = getattr(item.ihook, hookname)
return CallInfo(lambda: ihook(item=item, **kwds), when=when)
class CallInfo(object):
class CallInfo:
""" Result/Exception info a function invocation. """
#: None or ExceptionInfo object.
excinfo = None