Mercurial > p > roundup > code
comparison test/memorydb.py @ 4350:23bf9290140a
don't have mailgw tests close the db - they're not testing persistence
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 08 Feb 2010 08:30:37 +0000 |
| parents | f0faef4dd023 |
| children | 887a153cedec |
comparison
equal
deleted
inserted
replaced
| 4349:f0faef4dd023 | 4350:23bf9290140a |
|---|---|
| 182 self.stats = {'cache_hits': 0, 'cache_misses': 0, 'get_items': 0, | 182 self.stats = {'cache_hits': 0, 'cache_misses': 0, 'get_items': 0, |
| 183 'filtering': 0} | 183 'filtering': 0} |
| 184 self.sessions = Sessions() | 184 self.sessions = Sessions() |
| 185 self.otks = OneTimeKeys() | 185 self.otks = OneTimeKeys() |
| 186 self.indexer = Indexer(self) | 186 self.indexer = Indexer(self) |
| 187 self.sessions = Sessions() | |
| 188 | 187 |
| 189 # anydbm bits | 188 # anydbm bits |
| 190 self.cache = {} # cache of nodes loaded or created | 189 self.cache = {} # cache of nodes loaded or created |
| 191 self.dirtynodes = {} # keep track of the dirty nodes by class | 190 self.dirtynodes = {} # keep track of the dirty nodes by class |
| 192 self.newnodes = {} # keep track of the new nodes by class | 191 self.newnodes = {} # keep track of the new nodes by class |
| 193 self.destroyednodes = {}# keep track of the destroyed nodes by class | 192 self.destroyednodes = {}# keep track of the destroyed nodes by class |
| 194 self.transactions = [] | 193 self.transactions = [] |
| 195 | |
| 196 | 194 |
| 197 def filename(self, classname, nodeid, property=None, create=0): | 195 def filename(self, classname, nodeid, property=None, create=0): |
| 198 shutil.copyfile(__file__, __file__+'.dummy') | 196 shutil.copyfile(__file__, __file__+'.dummy') |
| 199 return __file__+'.dummy' | 197 return __file__+'.dummy' |
| 200 | 198 |
