diff options
author | pierre-yves david <pierre-yves.david@insa-lyon.fr> | 2008-10-19 23:25:39 +0200 |
---|---|---|
committer | pierre-yves david <pierre-yves.david@insa-lyon.fr> | 2008-10-19 23:25:39 +0200 |
commit | fe08edd82ae7594b7edc9ab3d084643d812402f3 (patch) | |
tree | 8edf0df5416048ffd7d655f4ae2cd37713a07705 /test | |
parent | d79d1b8ceebe87d76c4226167b06f3d4dee90656 (diff) | |
download | logilab-common-fe08edd82ae7594b7edc9ab3d084643d812402f3.tar.gz |
replace all has_key call with "element in dict" statement (3.x compat)
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest_cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unittest_cache.py b/test/unittest_cache.py index 8e7b998..ae96610 100644 --- a/test/unittest_cache.py +++ b/test/unittest_cache.py @@ -51,7 +51,7 @@ class CacheTestCase(TestCase): self.cache[4] = 'foz' self.cache[5] = 'fuz' self.cache[6] = 'spam' - self.assert_(not self.cache.has_key(1), + self.assert_(1 not in self.cache, 'key 1 has not been suppressed from the cache dictionnary') self.assert_(1 not in self.cache._usage, 'key 1 has not been suppressed from the cache LRU list') |