Skip to content

Commit dfeef8e

Browse files
committed
Skipped a migrations test that's not supported on MySQL + Python 3.
1 parent 27a3cfc commit dfeef8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/migrations/test_operations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
except ImportError:
88
sqlparse = None
99

10+
from django import test
1011
from django.db import connection, migrations, models, router
1112
from django.db.migrations.migration import Migration
1213
from django.db.migrations.state import ProjectState
@@ -422,6 +423,7 @@ def test_add_textfield(self):
422423
self.assertEqual(pony.digits, "42")
423424
self.assertEqual(pony.quotes, '"\'"')
424425

426+
@test.skipUnlessDBFeature('supports_binary_field')
425427
def test_add_binaryfield(self):
426428
"""
427429
Tests the AddField operation on TextField/BinaryField.

0 commit comments

Comments
 (0)