nose-devs/nose — Issue #342: broken plugins should not prevent nosetests running
Author: jpellerin
Created: 2011-12-14 16:08:34+00:00
State: open

What steps will reproduce the problem?
1. Create a new virtualenv --no-site-packages
2. install sqlalchemy
3. run nosetests

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

nose should run in this situation, but it does not since the sqlalchemy
nose plugin tries to import pysqlite2, which is not available (tbk below).

A failed plugin import should not prevent nose running, just that plugin
loading.

Traceback (most recent call last):
File "/Users/james/Documents/virtualenvs/galaxy/bin/nosetests", line 8,
in
load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')()
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/nose/core.py",
line 113, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/unittest.py",
line 767, in __init__
self.parseArgs(argv)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/nose/core.py",
line 130, in parseArgs
self.config.configure(argv, doc=self.usage())
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/nose/config.py",
line 299, in configure
self.plugins.configure(options, self)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/nose/plugins/manager.py",
line 254, in configure
cfg(options, config)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/nose/plugins/manager.py",
line 82, in __call__
return self.call(*arg, **kw)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/nose/plugins/manager.py",
line 150, in simple
result = meth(*arg, **kw)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/sqlalchemy/test/noseplugin.py",
line 87, in configure
fn(options, file_config)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/sqlalchemy/test/config.py",
line 120, in _create_testing_engine
db = engines.testing_engine(db_url, db_opts)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/sqlalchemy/test/engines.py",
line 117, in testing_engine
engine = create_engine(url, **options)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/sqlalchemy/engine/__init__.py",
line 223, in create_engine
return strategy.create(*args, **kwargs)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/sqlalchemy/engine/strategies.py",
line 62, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File
"/Users/james/Documents/virtualenvs/galaxy/lib/python2.5/site-packages/sqlalchemy/databases/sqlite.py",
line 381, in dbapi
raise e
ImportError: No module named pysqlite2

Google Code Info:
Issue #: 284
Author: cas...@gmail.com
Created On: 2009-08-19T10:07:01.000Z
Closed On: