From 57a770b8e586399926311d86639c6789a1563253 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 17 Jun 2014 00:36:27 -0700 Subject: [PATCH] [1.7.x] Fix test breakage on MySQL --- tests/schema/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/schema/tests.py b/tests/schema/tests.py index f3b9423147a..816c8e26c5c 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -287,7 +287,9 @@ class SchemaTests(TransactionTestCase): ) # Ensure the field is right afterwards columns = self.column_classes(Author) - self.assertEqual(columns['bits'][0], "BinaryField") + # MySQL annoyingly uses the same backend, so it'll come back as one of + # these two types. + self.assertIn(columns['bits'][0], ("BinaryField", "TextField")) def test_alter(self): """