mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-17 03:51:03 +03:00
fix compat with python 2.5
This commit is contained in:
parent
7f7be826e2
commit
d866f2177e
|
@ -1,7 +1,12 @@
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from djangorestframework.compat import RequestFactory
|
from djangorestframework.compat import RequestFactory
|
||||||
from pygments_api import views
|
from pygments_api import views
|
||||||
import tempfile, shutil, json
|
import tempfile, shutil
|
||||||
|
|
||||||
|
try:
|
||||||
|
import json
|
||||||
|
except ImportError:
|
||||||
|
import simplejson as json
|
||||||
|
|
||||||
class TestPygmentsExample(TestCase):
|
class TestPygmentsExample(TestCase):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user