Mercurial > public > mercurial-scm > hg
comparison tests/test-filecache.py @ 14937:0b3e57c1b8c0
filecache: fix check-code complaint
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jul 2011 12:58:47 -0500 |
parents | dca59d5be12d |
children | 4c01478991a3 |
comparison
equal
deleted
inserted
replaced
14936:9dca7653b525 | 14937:0b3e57c1b8c0 |
---|---|
72 | 72 |
73 def wrapinit(orig, *args, **kwargs): | 73 def wrapinit(orig, *args, **kwargs): |
74 pass | 74 pass |
75 | 75 |
76 originit = extensions.wrapfunction(util.cachestat, '__init__', wrapinit) | 76 originit = extensions.wrapfunction(util.cachestat, '__init__', wrapinit) |
77 origcacheable = extensions.wrapfunction(util.cachestat, 'cacheable', wrapcacheable) | 77 origcacheable = extensions.wrapfunction(util.cachestat, 'cacheable', |
78 wrapcacheable) | |
78 | 79 |
79 try: | 80 try: |
80 os.remove('x') | 81 os.remove('x') |
81 except: | 82 except: |
82 pass | 83 pass |