D5674: tests: fix module-import warnings in test-update-atomic.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Jan 24 15:15:32 UTC 2019
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
These were caught by test-check-module-imports.t on Python 3.
This should also make python3-buildbot green again.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5674
AFFECTED FILES
tests/test-update-atomic.t
CHANGE DETAILS
diff --git a/tests/test-update-atomic.t b/tests/test-update-atomic.t
--- a/tests/test-update-atomic.t
+++ b/tests/test-update-atomic.t
@@ -4,9 +4,10 @@
$ cat > $TESTTMP/show_mode.py <<EOF
> from __future__ import print_function
+ > import os
+ > import stat
> import sys
- > import os
- > from stat import ST_MODE
+ > ST_MODE = stat.ST_MODE
>
> for file_path in sys.argv[1:]:
> file_stat = os.stat(file_path)
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list