mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
committed by
Tim Graham
parent
c0c78f1b70
commit
f7969b0920
4
tests/cache/tests.py
vendored
4
tests/cache/tests.py
vendored
@@ -2084,7 +2084,7 @@ class CacheHandlerTest(TestCase):
|
||||
cache1 = caches['default']
|
||||
cache2 = caches['default']
|
||||
|
||||
self.assertTrue(cache1 is cache2)
|
||||
self.assertIs(cache1, cache2)
|
||||
|
||||
def test_per_thread(self):
|
||||
"""
|
||||
@@ -2101,4 +2101,4 @@ class CacheHandlerTest(TestCase):
|
||||
t.start()
|
||||
t.join()
|
||||
|
||||
self.assertFalse(c[0] is c[1])
|
||||
self.assertIsNot(c[0], c[1])
|
||||
|
||||
Reference in New Issue
Block a user