# HG changeset patch # User Pulkit Goyal # Date 1548342879 -10800 # Node ID 0a0927f7549d3738f02cec0a4d5eb16d62d92dc5 # Parent dafd13c7237b6413ab044a9091e8cdebbb80e91f 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 diff -r dafd13c7237b -r 0a0927f7549d 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 < 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)