Преглед изворни кода

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

- Fix for python2.4
abec пре 13 година
родитељ
комит
9f0a8b8
1 измењених фајлова са 4 додато и 1 уклоњено
  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