omnijson for tests
authorKenneth Reitz <me@kennethreitz.com>
Tue, 21 Jun 2011 21:59:24 +0000 (17:59 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Tue, 21 Jun 2011 21:59:24 +0000 (17:59 -0400)
test_requests.py
tox.ini

index b1fe22cdf285f7294bc53ebaaec0af08189c4486..8a6b0ae0a47ee53455bb29bb81fa6ce9494827c7 100755 (executable)
@@ -5,10 +5,8 @@ from __future__ import with_statement
 
 import unittest
 import cookielib
-try:
-    import simplejson as json
-except ImportError:
-    import json
+
+import omnijson as json
 
 import requests
 
diff --git a/tox.ini b/tox.ini
index 87e79ac4f6cb0b13724a3eb93e0663c4893b28f5..3c2ef1f66c49e66a9d6b8115eb029f8afd70fe78 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -5,3 +5,4 @@ envlist = py25,py26,py27
 commands=py.test --junitxml=junit-{envname}.xml
 deps =
     pytest
+    omnijson