Mercurial > public > mercurial-scm > hg
diff tests/test-push-race.t @ 49306:2e726c934fcd
py3: catch FileNotFoundError instead of checking errno == ENOENT
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 31 May 2022 22:50:01 +0200 |
parents | 9c4204b7f3e4 |
children | c6f0bcb7bc57 |
line wrap: on
line diff
--- a/tests/test-push-race.t Tue May 31 21:16:17 2022 +0200 +++ b/tests/test-push-race.t Tue May 31 22:50:01 2022 +0200 @@ -58,9 +58,8 @@ > def delete(): > try: > os.unlink(watchpath) - > except OSError as exc: - > if exc.errno != errno.ENOENT: - > raise + > except FileNotFoundError: + > pass > ui.atexit(delete) > return orig(pushop) >