mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed utils_tests.test_lazyobject.SimpleLazyObjectPickleTestCase.
SimpleLazyObjectPickleTestCase executes database queries so it must inherit from django.test.TestCase.
This commit is contained in:
parent
517d3bb4dd
commit
4c85d94bc0
1 changed files with 3 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
|||
import copy
|
||||
import pickle
|
||||
import sys
|
||||
import unittest
|
||||
import warnings
|
||||
from unittest import TestCase
|
||||
|
||||
from django.test import TestCase
|
||||
from django.utils.functional import LazyObject, SimpleLazyObject, empty
|
||||
|
||||
from .models import Category, CategoryInfo
|
||||
|
@ -20,7 +21,7 @@ class Foo:
|
|||
return self.foo == other.foo
|
||||
|
||||
|
||||
class LazyObjectTestCase(TestCase):
|
||||
class LazyObjectTestCase(unittest.TestCase):
|
||||
def lazy_wrap(self, wrapped_object):
|
||||
"""
|
||||
Wrap the given object into a LazyObject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue