nose-devs/nose2 — Issue #21: ImportError ignored when loading tests by name
Author: jpellerin
Created: 2012-01-23 20:41:29+00:00
State: open
Labels: bug, release 0.1

Given a test case/method/function in a module with an import error, when that test name is passed to nose2, 0 tests are run.

Instead, a failure to import "test" (loader.failedImport) should be returned, so the import error is exposed without stopping the test run. Most likely, util.test_from_name must stop catching attribute and import errors, and leave catching those to callers.