Skip to content

Loading…

Error extractor should be able to gasp top-level error #6

Open
Almad opened this Issue · 0 comments

1 participant

@Almad
Owner
FAIL: testproject.test.test_liveserver.TestLiveServerRunning.test_django_error_traceback
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
  File "/home/lukas.linhart/projects/django-sane-testing/testproject/../testproject/test/test_liveserver.py", line 68, in test_django_error_traceback
    self.assert_not_equals("500 Server error, traceback not found", err.msg)
  File "/home/lukas.linhart/projects/django-sane-testing/testproject/../djangosanetesting/cases.py", line 50, in assert_not_equals
    assert_not_equals(*args, **kwargs)
AssertionError: '500 Server error, traceback not found' == '500 Server error, traceback not found'
-------------------- >> begin captured stdout << ---------------------
['_HTTPError__super_init', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__getitem__', '__getslice__', '__hash__', '__init__', '__iter__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '__unicode__', '__weakref__', 'args', 'close', 'code', 'errno', 'filename', 'fileno', 'fp', 'getcode', 'geturl', 'hdrs', 'headers', 'info', 'message', 'msg', 'next', 'read', 'readline', 'readlines', 'strerror', 'url']
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/__init__.py", line 1174, in communicate
    req.respond()
  File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/__init__.py", line 544, in respond
    self._respond()
  File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/__init__.py", line 556, in _respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/home/lukas.linhart/projects/django-sane-testing/testproject/../djangosanetesting/noseplugins.py", line 253, in application
    return _application(environ, start_response)
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 674, in __call__
    return self.application(environ, start_response)
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
    response = self.get_response(request)
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/django/core/handlers/base.py", line 141, in get_response
    return self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/django/core/handlers/base.py", line 180, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/django/views/defaults.py", line 23, in server_error
    t = loader.get_template(template_name) # You need to create a 500.html template.
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/django/template/loader.py", line 157, in get_template
    template, origin = find_template(template_name)
  File "/home/lukas.linhart/projects/django-sane-testing/lib/python2.6/site-packages/django/template/loader.py", line 138, in find_template
    raise TemplateDoesNotExist(name)
TemplateDoesNotExist: 500.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.