borg/src/borg/testsuite
Thomas Waldmann 046f9fe392
LockRoster.modify: no KeyError if element was already gone, fixes #7937
The intention of LockRoster.modify(key, REMOVE) is to remove self.id.

Using set.discard will just ignore it if self.id is not present there anymore.

Previously, using set.remove triggered a KeyError that has been frequently
seen in tracebacks of teardowns involving Repository.__del__ and Repository.__exit__.

I added a REMOVE2 op to serve one caller that needs to get the KeyError if
self.id was not present.

Thanks to @herrmanntom for the workaround!
2023-11-18 17:39:30 +01:00
..
archiver tests: borg check must not add a spoofed archive to manifest 2023-09-24 20:10:58 +02:00
__init__.py fix F401 2023-07-26 01:23:37 +02:00
archive.py ro_type: typed repo objects, see #7670 2023-09-24 20:10:50 +02:00
benchmark.py fix F401 2023-07-26 01:23:37 +02:00
cache.py add_chunk: remove overwrite parameter 2023-09-23 00:10:35 +02:00
checksums.py
chunker.py
chunker_pytest.py
chunker_slow.py removed BaseTestCase from chunker_slow.py 2023-07-26 14:59:45 -07:00
compress.py zlib legacy decompress: fix tests 2023-10-24 23:33:42 +02:00
crypto.py fix E501 2023-07-26 01:24:20 +02:00
efficient_collection_queue.py
file_integrity.py fix F401 2023-07-26 01:23:37 +02:00
hashindex.py fix F401 2023-07-26 01:23:37 +02:00
hashindex_pytest.py
helpers.py test_is_slow_msgpack: skip test on expected slow msgpack environments 2023-09-14 14:47:30 +02:00
item.py
key.py remove manifest TAMs 2023-09-24 20:10:53 +02:00
locking.py LockRoster.modify: no KeyError if element was already gone, fixes #7937 2023-11-18 17:39:30 +01:00
logger.py
lrucache.py
nanorst.py
patterns.py
platform.py use skipif_acls_not_working decorator for freebsd also 2023-08-27 05:07:56 +02:00
platform_darwin.py seperated platform tests into seperate modules 2023-07-27 15:38:21 -07:00
platform_freebsd.py use skipif_acls_not_working decorator for freebsd also 2023-08-27 05:07:56 +02:00
platform_linux.py linux: move ACL definitions to platform_linux test module 2023-08-27 05:06:17 +02:00
platform_posix.py seperated platform tests into seperate modules 2023-07-27 15:38:21 -07:00
remote.py ro_type: typed repo objects, see #7670 2023-09-24 20:10:50 +02:00
repoobj.py raise IntegrityError if ro_type is not as expected 2023-09-24 20:10:56 +02:00
repository.py check --repair: test if shadow index is recreated 2023-11-05 18:41:31 +01:00
shellpattern.py
version.py
xattr.py