remove a hack that isn't needed because runtestprotocol now memorizes pending teardowns and thus dist-testing has "exact" teardowns as well
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#
|
||||
__version__ = '2.2.0.dev9'
|
||||
__version__ = '2.2.0.dev10'
|
||||
|
||||
@@ -330,6 +330,8 @@ class Item(Node):
|
||||
""" a basic test invocation item. Note that for a single function
|
||||
there might be multiple test invocation items.
|
||||
"""
|
||||
nextitem = None
|
||||
|
||||
def reportinfo(self):
|
||||
return self.fspath, None, ""
|
||||
|
||||
|
||||
@@ -340,13 +340,7 @@ class SetupState(object):
|
||||
assert not self._finalizers
|
||||
|
||||
def teardown_exact(self, item):
|
||||
try:
|
||||
colitem = item.nextitem
|
||||
except AttributeError:
|
||||
# in distributed testing there might be no known nexitem
|
||||
# and in this case we use the parent node to at least call
|
||||
# teardown of the current item
|
||||
colitem = item.parent
|
||||
colitem = item.nextitem
|
||||
needed_collectors = colitem and colitem.listchain() or []
|
||||
self._teardown_towards(needed_collectors)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user