tests: replace "naked except clause" to avoid check-code.py error
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 18 Feb 2019 00:27:25 +0900
changeset 41737 cab32f08c994
parent 41736 9897e95b0b4a
child 41738 c70bdd222dcd
tests: replace "naked except clause" to avoid check-code.py error This is a part of preparation to apply checking with check-code.py on code fragments embedded in *.t test scripts.
tests/test-acl.t
--- a/tests/test-acl.t	Mon Feb 18 00:27:25 2019 +0900
+++ b/tests/test-acl.t	Mon Feb 18 00:27:25 2019 +0900
@@ -38,7 +38,7 @@
   > def fakegetusers(ui, group):
   >     try:
   >         return acl._getusersorig(ui, group)
-  >     except:
+  >     except BaseException:
   >         return [b"fred", b"betty"]
   > acl._getusersorig = acl._getusers
   > acl._getusers = fakegetusers