borgbackup/borg/testsuite
Thomas Waldmann 8fd0e07a1c hashindex: fix iterator implementation
NSKeyIterator and ChunkKeyIterator raised StopIteration once only when they reached their end.

But they did not raise StopIteration if one called next() again after they were exhausted,
so they did not comply to the standard iterator protocol.

AFAIK, this did not cause actual problems due to the way these iterators are used,
but when I tried to use itertools.islice() to get n-long sequences from these iterators,
it failed / went into an endless loop.
2016-09-29 04:41:59 +02:00
..
__init__.py fuse: EIO on damaged files unless told not to (-o allow_damaged_files) 2016-07-10 02:19:30 +02:00
archive.py fixup rename 2016-07-03 23:57:55 +02:00
archiver.py testsuite/archiver.py: Fix key import failure with ArchiverTestCaseBinary 2016-09-26 19:47:39 +02:00
benchmark.py cosmetic source cleanup (flake8) 2016-01-30 21:32:45 +01:00
chunker.py Chunker: fix wrong EOF assumption[1], check for return type[2] 2016-03-31 22:03:17 +02:00
compress.py LZ4: dynamically enlarge the (de)compression buffer, fixes #1453 2016-08-09 02:52:21 +02:00
crypto.py make borg build/work on OpenSSL 1.0 and 1.1, fixes #1187 2016-06-21 20:20:48 +02:00
hashindex.py hashindex: fix iterator implementation 2016-09-29 04:41:59 +02:00
helpers.py refactor buffer code into helpers.Buffer class, add tests 2016-08-13 01:45:23 +02:00
key.py remove conditionals/wrappers, we always have stat nanosecond support on 3.4+ 2016-01-24 15:16:05 +01:00
locking.py repository: fix spurious, empty lock.roster on InvalidRepository exception 2016-08-18 00:54:12 +02:00
logger.py configure logging via env var, use LazyLogger 2015-11-21 01:14:07 +01:00
lrucache.py minor lrucache test fix 2015-08-15 16:15:10 +02:00
platform.py acls (linux): make tests as they should be 2015-10-19 01:09:58 +02:00
repository.py repo tests: use H(x) instead of some similar constructs 2016-08-23 21:29:40 +02:00
shellpattern.py Add shell-style pattern syntax 2016-01-21 16:07:24 +01:00
upgrader.py fix local repo / upgrader tests 2016-08-05 19:06:38 +02:00
xattr.py refactor buffer code into helpers.Buffer class, add tests 2016-08-13 01:45:23 +02:00