test_request: simplejson is just as good as omnijson for test
authorGulácsi Tamás <gt-waterhouse@gthomas.homelinux.org>
Sat, 23 Jul 2011 20:15:28 +0000 (22:15 +0200)
committerGulácsi Tamás <gt-waterhouse@gthomas.homelinux.org>
Sat, 23 Jul 2011 20:15:28 +0000 (22:15 +0200)
test_requests.py

index f2aded2..c3f3395 100755 (executable)
@@ -6,7 +6,10 @@ from __future__ import with_statement
 import unittest
 import cookielib
 
-import omnijson as json
+try:
+    import omnijson as json
+except ImportError:
+    import simplejson as json
 
 import requests