/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_lru_cache.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-30 19:16:23 UTC
  • mto: This revision was merged to the branch mainline in revision 6639.
  • Revision ID: jelmer@jelmer.uk-20170530191623-t9ls96vjy9wslpoo
Remove deprecated functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from .. import (
20
20
    lru_cache,
21
 
    symbol_versioning,
22
21
    tests,
23
22
    )
24
23
 
128
127
 
129
128
        self.assertFalse('foo' in cache)
130
129
 
131
 
    def test_cleanup_function_deprecated(self):
132
 
        """Test that per-node cleanup functions are no longer allowed"""
133
 
        cache = lru_cache.LRUCache()
134
 
        self.assertRaises(ValueError, self.applyDeprecated,
135
 
            symbol_versioning.deprecated_in((2, 5, 0)),
136
 
            cache.add, "key", 1, cleanup=lambda: None)
137
 
 
138
130
    def test_len(self):
139
131
        cache = lru_cache.LRUCache(max_cache=10, after_cleanup_count=10)
140
132