Mercurial > public > mercurial-scm > hg
comparison tests/test-filecache.py @ 52097:720d9849dcf9
filecache: use binary path in the test
This was overlooked when converting string. This is needed as we are about to
introduce bytes specific code in the filecache code path.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 26 Oct 2024 02:03:54 +0200 |
parents | 09367b3d23d8 |
children | 97840154eee3 |
comparison
equal
deleted
inserted
replaced
52096:19ae7730636a | 52097:720d9849dcf9 |
---|---|
46 return self | 46 return self |
47 | 47 |
48 def sjoin(self, p): | 48 def sjoin(self, p): |
49 return p | 49 return p |
50 | 50 |
51 @localrepo.repofilecache('x', 'y') | 51 @localrepo.repofilecache(b'x', b'y') |
52 def cached(self): | 52 def cached(self): |
53 print('creating') | 53 print('creating') |
54 return 'string from function' | 54 return 'string from function' |
55 | 55 |
56 def invalidate(self): | 56 def invalidate(self): |