D957: test-push-race: use 'ui.atexit' instead of python's 'atexit'
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Sat Oct 7 09:20:35 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG30ae924a9e00: test-push-race: use 'ui.atexit' instead of python's 'atexit' (authored by singhsrb, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D957?vs=2475&id=2518
REVISION DETAIL
https://phab.mercurial-scm.org/D957
AFFECTED FILES
tests/test-push-race.t
CHANGE DETAILS
diff --git a/tests/test-push-race.t b/tests/test-push-race.t
--- a/tests/test-push-race.t
+++ b/tests/test-push-race.t
@@ -15,7 +15,6 @@
> Client with the extensions will create a file when ready and get stuck until
> a file is created."""
>
- > import atexit
> import errno
> import os
> import time
@@ -51,7 +50,7 @@
> except OSError as exc:
> if exc.errno != errno.ENOENT:
> raise
- > atexit.register(delete)
+ > ui.atexit(delete)
> return orig(pushop)
>
> def uisetup(ui):
To: singhsrb, #hg-reviewers, quark
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list