Build a stack of all previous packages instead of just the one closest to the initial argument(s).

Address #3358 by caching nodes in a session dict.
This commit is contained in:
turturica
2018-04-21 18:39:42 -07:00
parent b0474398ec
commit fedc78522b
2 changed files with 47 additions and 14 deletions

View File

@@ -192,7 +192,7 @@ class TestNewSession(SessionTests):
started = reprec.getcalls("pytest_collectstart")
finished = reprec.getreports("pytest_collectreport")
assert len(started) == len(finished)
assert len(started) == 8 # XXX extra TopCollector
assert len(started) == 7 # XXX extra TopCollector
colfail = [x for x in finished if x.failed]
assert len(colfail) == 1