mirror of
https://github.com/django/django.git
synced 2025-09-09 20:16:32 +00:00
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
This commit is contained in:
parent
7b2f2e74ad
commit
2b281cc35e
180 changed files with 421 additions and 559 deletions
|
@ -1,6 +1,5 @@
|
|||
from django.core.exceptions import ValidationError
|
||||
from django.test import TestCase
|
||||
from django.utils import six
|
||||
|
||||
from .models import DataModel
|
||||
|
||||
|
@ -9,7 +8,7 @@ class BinaryFieldTests(TestCase):
|
|||
binary_data = b'\x00\x46\xFE'
|
||||
|
||||
def test_set_and_retrieve(self):
|
||||
data_set = (self.binary_data, six.memoryview(self.binary_data))
|
||||
data_set = (self.binary_data, memoryview(self.binary_data))
|
||||
for bdata in data_set:
|
||||
dm = DataModel(data=bdata)
|
||||
dm.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue