From 5a92bb0725e07068b260364ef66466f126000b0b Mon Sep 17 00:00:00 2001 From: sage Date: Thu, 28 Mar 2019 16:18:30 +0700 Subject: [PATCH] Fixed #30295 -- Fixed max_lengths.tests.MaxLengthORMTests when run in isolation. --- tests/max_lengths/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/max_lengths/tests.py b/tests/max_lengths/tests.py index fb81a7f473..dfea552fad 100644 --- a/tests/max_lengths/tests.py +++ b/tests/max_lengths/tests.py @@ -1,5 +1,7 @@ import unittest +from django.test import TestCase + from .models import PersonWithCustomMaxLengths, PersonWithDefaultMaxLengths @@ -21,7 +23,7 @@ class MaxLengthArgumentsTests(unittest.TestCase): self.verify_max_length(PersonWithCustomMaxLengths, 'avatar', 250) -class MaxLengthORMTests(unittest.TestCase): +class MaxLengthORMTests(TestCase): def test_custom_max_lengths(self): args = {