Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
d90d5380
Commit
d90d5380
authored
Dec 19, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8
parent
ab86990a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
rest_framework/tests/renderers.py
+6
-6
No files found.
rest_framework/tests/renderers.py
View file @
d90d5380
...
@@ -444,19 +444,19 @@ class CacheRenderTest(TestCase):
...
@@ -444,19 +444,19 @@ class CacheRenderTest(TestCase):
return
return
if
state
==
None
:
if
state
==
None
:
return
return
if
isinstance
(
state
,
tuple
):
if
isinstance
(
state
,
tuple
):
if
not
isinstance
(
state
[
0
],
dict
):
if
not
isinstance
(
state
[
0
],
dict
):
state
=
state
[
1
]
state
=
state
[
1
]
else
:
else
:
state
=
state
[
0
]
.
update
(
state
[
1
])
state
=
state
[
0
]
.
update
(
state
[
1
])
result
=
{}
result
=
{}
for
i
in
state
:
for
i
in
state
:
try
:
try
:
pickle
.
dumps
(
state
[
i
],
protocol
=
2
)
pickle
.
dumps
(
state
[
i
],
protocol
=
2
)
except
pickle
.
PicklingError
:
except
pickle
.
PicklingError
:
if
not
state
[
i
]
in
seen
:
if
not
state
[
i
]
in
seen
:
seen
.
append
(
state
[
i
])
seen
.
append
(
state
[
i
])
result
[
i
]
=
cls
.
_get_pickling_errors
(
state
[
i
],
seen
)
result
[
i
]
=
cls
.
_get_pickling_errors
(
state
[
i
],
seen
)
return
result
return
result
def
http_resp
(
self
,
http_method
,
url
):
def
http_resp
(
self
,
http_method
,
url
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment