tests/test-largefiles-small-disk.t
changeset 30181 7356e6b1f5b8
parent 20063 8a021cd38719
child 31207 1ef37b16b8e8
equal deleted inserted replaced
30180:736f92c44656 30181:7356e6b1f5b8
     9   >     fdst.write(fsrc.read(4))
     9   >     fdst.write(fsrc.read(4))
    10   >     raise IOError(errno.ENOSPC, os.strerror(errno.ENOSPC))
    10   >     raise IOError(errno.ENOSPC, os.strerror(errno.ENOSPC))
    11   > shutil.copyfileobj = copyfileobj
    11   > shutil.copyfileobj = copyfileobj
    12   > #
    12   > #
    13   > # this makes the rewritten code abort:
    13   > # this makes the rewritten code abort:
    14   > def filechunkiter(f, size=65536, limit=None):
    14   > def filechunkiter(f, size=131072, limit=None):
    15   >     yield f.read(4)
    15   >     yield f.read(4)
    16   >     raise IOError(errno.ENOSPC, os.strerror(errno.ENOSPC))
    16   >     raise IOError(errno.ENOSPC, os.strerror(errno.ENOSPC))
    17   > util.filechunkiter = filechunkiter
    17   > util.filechunkiter = filechunkiter
    18   > #
    18   > #
    19   > def oslink(src, dest):
    19   > def oslink(src, dest):