D7811: tests: fix a "naked exception" issue in test-remotefilelog-prefetch.t

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Wed Jan 8 14:49:37 EST 2020


Closed by commit rHG1e0783b946c8: tests: fix a "naked exception" issue in test-remotefilelog-prefetch.t (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7811?vs=19086&id=19090

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7811/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7811

AFFECTED FILES
  tests/test-remotefilelog-prefetch.t

CHANGE DETAILS

diff --git a/tests/test-remotefilelog-prefetch.t b/tests/test-remotefilelog-prefetch.t
--- a/tests/test-remotefilelog-prefetch.t
+++ b/tests/test-remotefilelog-prefetch.t
@@ -250,7 +250,7 @@
   >         try:
   >             hexid = (b'%02x' % (i + 1)) * 20
   >             repo.fileservice.prefetch([(b'somefile.txt', hexid)])
-  >         except:
+  >         except Exception:
   >             pass
   > EOF
 



To: spectral, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list