summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-01-11 21:18:56 +0100
committerClaude Paroz <claude@2xlibre.net>2015-01-11 23:34:47 +0100
commit68a439a18da17a65555832eff0a7c2090655b583 (patch)
tree5d18d209b10d2f0054f952791f4edcc5b604aa80 /tests
parentd563e3be68369694a3bac1efd7779d8e03bb6a51 (diff)
Removed supports_binary_field flag as all backends support them
It was mainly for MySQL on Python 3, but now the current recommended MySQL driver for Python 3 (mysqlclient) does support binary fields, it is unneeded. Refs #20377.
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_operations.py2
-rw-r--r--tests/model_fields/tests.py1
-rw-r--r--tests/serializers_regress/tests.py1
3 files changed, 0 insertions, 4 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py
index a491d9c280..12fd807bae 100644
--- a/tests/migrations/test_operations.py
+++ b/tests/migrations/test_operations.py
@@ -7,7 +7,6 @@ try:
except ImportError:
sqlparse = None
-from django import test
from django.db import connection, migrations, models, transaction
from django.db.migrations.migration import Migration
from django.db.migrations.state import ProjectState
@@ -669,7 +668,6 @@ class OperationTests(OperationTestBase):
self.assertEqual(pony.digits, "42")
self.assertEqual(pony.quotes, '"\'"')
- @test.skipUnlessDBFeature('supports_binary_field')
def test_add_binaryfield(self):
"""
Tests the AddField operation on TextField/BinaryField.
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py
index 9ef46006e1..897359c0cf 100644
--- a/tests/model_fields/tests.py
+++ b/tests/model_fields/tests.py
@@ -655,7 +655,6 @@ class FileFieldTests(unittest.TestCase):
class BinaryFieldTests(test.TestCase):
binary_data = b'\x00\x46\xFE'
- @test.skipUnlessDBFeature('supports_binary_field')
def test_set_and_retrieve(self):
data_set = (self.binary_data, six.memoryview(self.binary_data))
for bdata in data_set:
diff --git a/tests/serializers_regress/tests.py b/tests/serializers_regress/tests.py
index 15ecadaba9..2c99ed77b3 100644
--- a/tests/serializers_regress/tests.py
+++ b/tests/serializers_regress/tests.py
@@ -450,7 +450,6 @@ class SerializerTests(TestCase):
self.assertEqual(base_data, proxy_proxy_data.replace('proxy', ''))
-@skipUnlessDBFeature('supports_binary_field')
def serializerTest(format, self):
# Create all the objects defined in the test data