tests: fix module-import warnings in test-update-atomic.t
authorPulkit Goyal <pulkit@yandex-team.ru>
Thu, 24 Jan 2019 18:14:39 +0300
changeset 41358 0a0927f7549d
parent 41357 dafd13c7237b
child 41359 431cf2c8c839
tests: fix module-import warnings in test-update-atomic.t These were caught by test-check-module-imports.t on Python 3. This should also make python3-buildbot green again. Differential Revision: https://phab.mercurial-scm.org/D5674
tests/test-update-atomic.t
--- a/tests/test-update-atomic.t	Fri Jan 18 19:28:31 2019 +0530
+++ b/tests/test-update-atomic.t	Thu Jan 24 18:14:39 2019 +0300
@@ -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)