Disable assertion we can't, sadly, enable.

This commit is contained in:
Itamar Turner-Trauring 2022-08-17 12:49:06 -04:00
parent d50c98a1e9
commit c9084a2a45

View File

@ -428,10 +428,9 @@ class BucketWriter(object):
return sum([mr.stop - mr.start for mr in self._already_written.ranges()]) == self._max_size
def close(self):
# TODO this can't actually be enabled, because it's not backwards
# compatible. But it's useful for testing, so leaving it on until the
# branch is ready for merge.
assert self._is_finished()
# This can't actually be enabled, because it's not backwards compatible
# with old Foolscap clients.
# assert self._is_finished()
precondition(not self.closed)
self._timeout.cancel()
start = self._clock.seconds()