From 6a2d122a5069ca339f4f5d5faf8759162e2fbabc Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 2 Mar 2019 09:56:15 -0300 Subject: [PATCH] Remove code debugging leftovers --- src/_pytest/fixtures.py | 1 - src/_pytest/runner.py | 1 - testing/python/fixtures.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index fa45dffc1..2635d095e 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -870,7 +870,6 @@ class FixtureDef(object): def execute(self, request): # get required arguments and register our own finish() # with their finalization - # TODO CHECK HOW TO AVOID EXPLICITLY FINALIZING AGAINST ARGNAMES for argname in self.argnames: fixturedef = request._get_active_fixturedef(argname) if argname != "request": diff --git a/src/_pytest/runner.py b/src/_pytest/runner.py index 55dcd8054..8357991fe 100644 --- a/src/_pytest/runner.py +++ b/src/_pytest/runner.py @@ -327,7 +327,6 @@ class SetupState(object): assert callable(finalizer) # assert colitem in self.stack # some unit tests don't setup stack :/ self._finalizers.setdefault(colitem, []).append(finalizer) - pass def _pop_and_teardown(self): colitem = self.stack.pop() diff --git a/testing/python/fixtures.py b/testing/python/fixtures.py index 45c7a17ae..7b328c5b2 100644 --- a/testing/python/fixtures.py +++ b/testing/python/fixtures.py @@ -1904,7 +1904,7 @@ class TestAutouseManagement(object): "setup-2", "step1-2", "step2-2", "teardown-2",] """ ) - reprec = testdir.inline_run("-v") + reprec = testdir.inline_run("-s") reprec.assertoutcome(passed=5) def test_ordering_autouse_before_explicit(self, testdir):