summaryrefslogtreecommitdiffstats
path: root/tests/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py
index c1480840d..af4c23934 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -28,6 +28,7 @@ import tempfile
import shutil
import ipalib
from ipalib.plugable import Plugin
+from ipalib.request import context
@@ -202,6 +203,14 @@ class ClassChecker(object):
'get_subcls()'
)
+ def tearDown(self):
+ """
+ nose tear-down fixture.
+ """
+ for name in ('ugettext', 'ungettext'):
+ if hasattr(context, name):
+ delattr(context, name)
+