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

login
register
mail settings
Submitter phabricator
Date Jan. 8, 2020, 6:49 p.m.
Message ID <differential-rev-PHID-DREV-6nqntou6rgsryx5chbqd-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44191/
State Superseded
Headers show

Comments

phabricator - Jan. 8, 2020, 6:49 p.m.
spectral created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-remotefilelog-prefetch.t

CHANGE DETAILS




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

Patch

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