mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23919 -- Removed six.PY2/PY3 usage
Thanks Tim Graham for the review.
This commit is contained in:
@@ -2,7 +2,6 @@ import pickle
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.test import TestCase
|
||||
from django.utils import six
|
||||
from django.utils.functional import SimpleLazyObject
|
||||
|
||||
|
||||
@@ -21,9 +20,3 @@ class TestUtilsSimpleLazyObjectDjangoTestCase(TestCase):
|
||||
pickle.dumps(x, 0)
|
||||
pickle.dumps(x, 1)
|
||||
pickle.dumps(x, 2)
|
||||
|
||||
if six.PY2:
|
||||
import cPickle
|
||||
|
||||
# This would fail with "TypeError: expected string or Unicode object, NoneType found".
|
||||
cPickle.dumps(x)
|
||||
|
||||
Reference in New Issue
Block a user