mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
parent
c0c78f1b70
commit
f7969b0920
83 changed files with 419 additions and 429 deletions
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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue