Преглед на файлове

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