diff options
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/util.py b/tests/util.py index f3215e7d7..c22167a30 100644 --- a/tests/util.py +++ b/tests/util.py @@ -417,8 +417,7 @@ class ClassChecker(object): """ nose tear-down fixture. """ - for name in context.__dict__.keys(): - delattr(context, name) + context.__dict__.clear() @@ -509,8 +508,7 @@ class PluginTester(object): """ nose tear-down fixture. """ - for name in context.__dict__.keys(): - delattr(context, name) + context.__dict__.clear() class dummy_ugettext(object): |