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

login
register
mail settings
Submitter phabricator
Date Jan. 8, 2020, 7:49 p.m.
Message ID <29e0222ace44fb61c2c76f29fa149158@localhost.localdomain>
Download mbox | patch
Permalink /patch/44195/
State Not Applicable
Headers show

Comments

phabricator - Jan. 8, 2020, 7:49 p.m.
Closed by commit rHG1e0783b946c8: tests: fix a &quot;naked exception&quot; 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




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