PY-29371: Sync with teamcity(#176): purge tests on "scenario" call

When some scenarios are skipped due to tags, behave reports their steps but never reports "match" for them.

So, on next "match" stale (ignored actually) step is left on stack and used instead of real one
This commit is contained in:
Ilya.Kazakevich
2018-04-05 19:51:48 +03:00
parent 4f24cbebe4
commit 1bd950ed71
2 changed files with 8 additions and 6 deletions
@@ -55,6 +55,7 @@ class TeamcityFormatter(Formatter):
assert isinstance(scenario, Scenario)
self.__scenario = scenario
self.__scenario_opened = False
self.__steps.clear()
def step(self, step):
assert isinstance(step, Step)