Show More
@@ -21,6 +21,7 b' class fakerepo(object):' | |||||
21 | @filecache('x') |
|
21 | @filecache('x') | |
22 | def cached(self): |
|
22 | def cached(self): | |
23 | print 'creating' |
|
23 | print 'creating' | |
|
24 | return 'string from function' | |||
24 |
|
25 | |||
25 | def invalidate(self): |
|
26 | def invalidate(self): | |
26 | for k in self._filecache: |
|
27 | for k in self._filecache: | |
@@ -103,7 +104,7 b' def test_filecache_synced():' | |||||
103 |
|
104 | |||
104 | def setbeforeget(repo): |
|
105 | def setbeforeget(repo): | |
105 | os.remove('x') |
|
106 | os.remove('x') | |
106 |
repo.cached = |
|
107 | repo.cached = 'string set externally' | |
107 | repo.invalidate() |
|
108 | repo.invalidate() | |
108 | print repo.cached |
|
109 | print repo.cached | |
109 | repo.invalidate() |
|
110 | repo.invalidate() |
General Comments 0
You need to be logged in to leave comments.
Login now