aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pygments_api/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pygments_api/tests.py')
-rw-r--r--examples/pygments_api/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/pygments_api/tests.py b/examples/pygments_api/tests.py
index 017823b9..a8f085cf 100644
--- a/examples/pygments_api/tests.py
+++ b/examples/pygments_api/tests.py
@@ -1,12 +1,12 @@
from django.test import TestCase
+from django.utils import simplejson as json
+
from djangorestframework.compat import RequestFactory
+
from pygments_api import views
import tempfile, shutil
-try:
- import json
-except ImportError:
- import simplejson as json
+
class TestPygmentsExample(TestCase):