diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2014-10-28 12:02:56 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-03 11:56:37 -0500 |
| commit | f7969b0920c403118656f6bfec58d6454d79ef1a (patch) | |
| tree | 866df7de0524251323fef2b4262e672150d95f00 /tests/cache | |
| parent | c0c78f1b707f825eee974c65515a837f8cf46e66 (diff) | |
Fixed #23620 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/cache')
| -rw-r--r-- | tests/cache/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py index ee003e9cac..3ad1979af4 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -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]) |
