Running Nose Tests with '-s' Option Causes Traceback #316

Closed
derks opened this Issue Jun 15, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@derks
Member

derks commented Jun 15, 2015

======================================================================
ERROR: test_colorlog (tests.ext.colorlog_tests.ColorLogExtTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/derks/Development/cement/tests/ext/colorlog_tests.py", line 28, in test_colorlog
    self.app.setup()
  File "/Users/derks/Development/cement/cement/core/foundation.py", line 746, in setup
    self._setup_log_handler()
  File "/Users/derks/Development/cement/cement/core/foundation.py", line 1094, in _setup_log_handler
    self.log = self._resolve_handler('log', self._meta.log_handler)
  File "/Users/derks/Development/cement/cement/core/foundation.py", line 1011, in _resolve_handler
    han._setup(self)
  File "/Users/derks/Development/cement/cement/ext/ext_logging.py", line 130, in _setup
    self.set_level(level)
  File "/Users/derks/Development/cement/cement/ext/ext_logging.py", line 155, in set_level
    self._setup_console_log()
  File "/Users/derks/Development/cement/cement/ext/ext_logging.py", line 199, in _setup_console_log
    format = self._get_console_format()
  File "/Users/derks/Development/cement/cement/ext/ext_colorlog.py", line 127, in _get_console_format
    if sys.stdout.isatty() or 'CEMENT_TEST' in os.environ:
AttributeError: 'NullOut' object has no attribute 'isatty'

derks added a commit that referenced this issue Jun 15, 2015

@derks derks added this to the 2.8.0 Stable milestone Jun 20, 2015

@derks derks closed this Jun 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment