mirror of https://github.com/django/django.git
Refs #27804 -- Used subTest() in BinaryFieldTests.test_set_and_retrieve.
This commit is contained in:
parent
8ba20d9071
commit
498092377b
|
@ -11,6 +11,7 @@ class BinaryFieldTests(TestCase):
|
|||
def test_set_and_retrieve(self):
|
||||
data_set = (self.binary_data, bytearray(self.binary_data), memoryview(self.binary_data))
|
||||
for bdata in data_set:
|
||||
with self.subTest(data=repr(bdata)):
|
||||
dm = DataModel(data=bdata)
|
||||
dm.save()
|
||||
dm = DataModel.objects.get(pk=dm.pk)
|
||||
|
|
Loading…
Reference in New Issue