##// END OF EJS Templates
tests: make test-ui-color use absolute_import
Pulkit Goyal -
r28915:40afa22b default
parent child Browse files
Show More
@@ -66,7 +66,6 b''
66 tests/test-simplemerge.py not using absolute_import
66 tests/test-simplemerge.py not using absolute_import
67 tests/test-symlink-os-yes-fs-no.py not using absolute_import
67 tests/test-symlink-os-yes-fs-no.py not using absolute_import
68 tests/test-trusted.py requires print_function
68 tests/test-trusted.py requires print_function
69 tests/test-ui-color.py not using absolute_import
70
69
71 #if py3exe
70 #if py3exe
72 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
71 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
@@ -1,7 +1,13 b''
1 from __future__ import print_function
1 from __future__ import absolute_import, print_function
2
2 import os
3 import os
3 from hgext import color
4 from hgext import (
4 from mercurial import dispatch, ui
5 color,
6 )
7 from mercurial import (
8 dispatch,
9 ui as uimod,
10 )
5
11
6 # ensure errors aren't buffered
12 # ensure errors aren't buffered
7 testui = color.colorui()
13 testui = color.colorui()
@@ -17,7 +23,7 b" hgrc.write('[extensions]\\n')"
17 hgrc.write('color=\n')
23 hgrc.write('color=\n')
18 hgrc.close()
24 hgrc.close()
19
25
20 ui_ = ui.ui()
26 ui_ = uimod.ui()
21 ui_.setconfig('ui', 'formatted', 'True')
27 ui_.setconfig('ui', 'formatted', 'True')
22
28
23 # we're not interested in the output, so write that to devnull
29 # we're not interested in the output, so write that to devnull
General Comments 0
You need to be logged in to leave comments. Login now