Skip to content

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
those debug messages are not really useful and pollute the output when
running with loglevel DEBUG. Also, these are the only hooks where there
is  debug so I assume it's just been forgotten.
  • Loading branch information
corentih committed Nov 13, 2015
1 parent d933502 commit 88ea394
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nose2/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,12 @@ def run(self, result):
self._safeMethodCall(self.tearDown, result)

def setUp(self):
# FIXME hook call
log.debug('in setUp layer %s', self.layer)
if self.layer is None:
return

setup = self._getBoundClassmethod(self.layer, 'setUp')
if setup:
setup()
log.debug('setUp layer %s called', self.layer)
self.wasSetup = True

def setUpTest(self, test):
Expand Down Expand Up @@ -85,7 +82,6 @@ def tearDown(self):
teardown = self._getBoundClassmethod(self.layer, 'tearDown')
if teardown:
teardown()
log.debug('tearDown layer %s called', self.layer)

def _safeMethodCall(self, method, result, *args):
try:
Expand Down

0 comments on commit 88ea394

Please sign in to comment.