/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-05-30 21:24:59 UTC
  • mfrom: (6630.1.4 deprecation)
  • Revision ID: breezy.the.bot@gmail.com-20170530212459-7n9a7isyb3nbim9y
Remove all deprecated arguments, functions and methods.

Merged from https://code.launchpad.net/~jelmer/brz/deprecation/+merge/324814

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