diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-15 14:53:20 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-15 14:53:20 -0400 |
commit | 8b7f57d258e372dcac678b2b9cb9629b6f7a24a3 (patch) | |
tree | ccdb233234be9e2d2bdb76a0f4b823a15fd3a472 /lib/sqlalchemy/testing/plugin/noseplugin.py | |
parent | d7498cf4adb8ef9f35d1efa6dc747ac9eb489e60 (diff) | |
download | sqlalchemy-8b7f57d258e372dcac678b2b9cb9629b6f7a24a3.tar.gz |
- fix issue where nose Failure object comes into play here
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/noseplugin.py')
-rw-r--r-- | lib/sqlalchemy/testing/plugin/noseplugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/plugin/noseplugin.py b/lib/sqlalchemy/testing/plugin/noseplugin.py index eb4a3b258..538087770 100644 --- a/lib/sqlalchemy/testing/plugin/noseplugin.py +++ b/lib/sqlalchemy/testing/plugin/noseplugin.py @@ -81,6 +81,8 @@ class NoseSQLAlchemy(Plugin): return plugin_base.want_class(cls) def beforeTest(self, test): + if not hasattr(test.test, 'cls'): + return plugin_base.before_test( test, test.test.cls.__module__, |