A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nose-devs/nose/issues/45 below:

.addError() not called on SkipTest, etc. · Issue #45 · nose-devs/nose · GitHub

What steps will reproduce the problem?

  1. Write a plugin, P, that uses .addError
  2. Raise SkipTest in a test

What is the expected output? What do you see instead?

Expected: .addError() is called on P
Got: .addError() is not called on P (assuming
nose.plugins.skip.Skip.addError is called before P.addError by the plugin
manager)

See attached patch for a proper test.

Please use labels and text to provide additional information.

As well as having .addError called, we also still need an interface for
plugins to find out whether an error is ignored. For example, plugin debug
needs this, so that it doesn't try to drop into the debugger on errors that
won't cause an unsuccessful test run, like skips. ATM, this is done by
returning False, which is what stops other plugins' .addError() methods
from getting called.

Discussion:
http://groups.google.com/group/nose-dev/browse_thread/thread/b1d726998dc79bd9

Google Code Info:
Issue #: 169
Author: j...@pobox.com
Created On: 2008-03-10T23:47:10.000Z
Closed On:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4