##// END OF EJS Templates
py3: conditionalize test-lfs-serve-access.t for Python 3.8...
Gregory Szorc -
r44581:bf5a7324 default
parent child Browse files
Show More
@@ -353,7 +353,8 b' Test a checksum failure during the proce'
353 353 $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob)
354 354 $LOCALIP - - [$ERRDATE$] HG error: localstore.download(oid, req.bodyfh, req.headers[b'Content-Length'])
355 355 $LOCALIP - - [$ERRDATE$] HG error: super(badstore, self).download(oid, src, contentlength)
356 $LOCALIP - - [$ERRDATE$] HG error: _(b'corrupt remote lfs object: %s') % oid (glob)
356 $LOCALIP - - [$ERRDATE$] HG error: raise LfsCorruptionError( (glob) (py38 !)
357 $LOCALIP - - [$ERRDATE$] HG error: _(b'corrupt remote lfs object: %s') % oid (glob) (no-py38 !)
357 358 $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (no-py3 !)
358 359 $LOCALIP - - [$ERRDATE$] HG error: hgext.lfs.blobstore.LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (py3 !)
359 360 $LOCALIP - - [$ERRDATE$] HG error: (glob)
@@ -363,9 +364,11 b' Test a checksum failure during the proce'
363 364 self.do_hgweb()
364 365 for chunk in self.server.application(env, self._start_response):
365 366 for r in self._runwsgi(req, res, repo):
366 rctx, req, res, self.check_perm
367 handled = wireprotoserver.handlewsgirequest( (py38 !)
368 return _processbasictransfer( (py38 !)
369 rctx, req, res, self.check_perm (no-py38 !)
367 370 return func(*(args + a), **kw) (no-py3 !)
368 rctx.repo, req, res, lambda perm: checkperm(rctx, req, perm)
371 rctx.repo, req, res, lambda perm: checkperm(rctx, req, perm) (no-py38 !)
369 372 res.setbodybytes(localstore.read(oid))
370 373 blob = self._read(self.vfs, oid, verify)
371 374 raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8"))
@@ -376,7 +379,8 b' Test a checksum failure during the proce'
376 379 $LOCALIP - - [$ERRDATE$] HG error: res.setbodybytes(localstore.read(oid)) (glob)
377 380 $LOCALIP - - [$ERRDATE$] HG error: blob = self._read(self.vfs, oid, verify) (glob)
378 381 $LOCALIP - - [$ERRDATE$] HG error: blobstore._verify(oid, b'dummy content') (glob)
379 $LOCALIP - - [$ERRDATE$] HG error: hint=_(b'run hg verify'), (glob)
382 $LOCALIP - - [$ERRDATE$] HG error: raise LfsCorruptionError( (glob) (py38 !)
383 $LOCALIP - - [$ERRDATE$] HG error: hint=_(b'run hg verify'), (glob) (no-py38 !)
380 384 $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: detected corrupt lfs object: 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d (no-py3 !)
381 385 $LOCALIP - - [$ERRDATE$] HG error: hgext.lfs.blobstore.LfsCorruptionError: detected corrupt lfs object: 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d (py3 !)
382 386 $LOCALIP - - [$ERRDATE$] HG error: (glob)
General Comments 0
You need to be logged in to leave comments. Login now