D957: test-push-race: use 'ui.atexit' instead of python's 'atexit'.
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Thu Oct 5 20:44:44 UTC 2017
singhsrb updated this revision to Diff 2472.
singhsrb added a comment.
Removing the full-stop at the end of commit message.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D957?vs=2471&id=2472
BRANCH
default
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list