summaryrefslogtreecommitdiffstats
path: root/gluster/swift/common/middleware/gswauth/test_swauth/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gluster/swift/common/middleware/gswauth/test_swauth/__init__.py')
-rw-r--r--gluster/swift/common/middleware/gswauth/test_swauth/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gluster/swift/common/middleware/gswauth/test_swauth/__init__.py b/gluster/swift/common/middleware/gswauth/test_swauth/__init__.py
new file mode 100644
index 0000000..0ee3666
--- /dev/null
+++ b/gluster/swift/common/middleware/gswauth/test_swauth/__init__.py
@@ -0,0 +1,10 @@
+# See http://code.google.com/p/python-nose/issues/detail?id=373
+# The code below enables nosetests to work with i18n _() blocks
+
+import __builtin__
+import sys
+import os
+from ConfigParser import MissingSectionHeaderError
+from StringIO import StringIO
+
+setattr(__builtin__, '_', lambda x: x)