Explorar o código

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

- Fix for python2.4
abec %!s(int64=13) %!d(string=hai) anos
pai
achega
9f0a8b8ba8
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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