Browse Source

HUE-753 [jobbrowser] Re-enable unit tests for job browser

- Fix for python2.4
abec 13 years ago
parent
commit
9f0a8b8ba8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      apps/jobbrowser/src/jobbrowser/tests.py

+ 4 - 1
apps/jobbrowser/src/jobbrowser/tests.py

@@ -15,7 +15,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import json
+try:
+    import json
+except ImportError:
+    import simplejson as json
 import logging
 import time
 import unittest