##// END OF EJS Templates
tests: make test-hgwebdir-paths use absolute_import
Pulkit Goyal -
r28932:4eac8633 default
parent child Browse files
Show More
@@ -56,7 +56,6 b''
56 tests/test-demandimport.py not using absolute_import
56 tests/test-demandimport.py not using absolute_import
57 tests/test-demandimport.py requires print_function
57 tests/test-demandimport.py requires print_function
58 tests/test-doctest.py not using absolute_import
58 tests/test-doctest.py not using absolute_import
59 tests/test-hgwebdir-paths.py not using absolute_import
60 tests/test-trusted.py requires print_function
59 tests/test-trusted.py requires print_function
61
60
62 #if py3exe
61 #if py3exe
@@ -1,13 +1,21 b''
1 from __future__ import absolute_import
2
1 import os
3 import os
2 from mercurial import hg, ui
4 from mercurial import (
3 from mercurial.hgweb.hgwebdir_mod import hgwebdir
5 hg,
6 ui as uimod,
7 )
8 from mercurial.hgweb import (
9 hgwebdir_mod,
10 )
11 hgwebdir = hgwebdir_mod.hgwebdir
4
12
5 os.mkdir('webdir')
13 os.mkdir('webdir')
6 os.chdir('webdir')
14 os.chdir('webdir')
7
15
8 webdir = os.path.realpath('.')
16 webdir = os.path.realpath('.')
9
17
10 u = ui.ui()
18 u = uimod.ui()
11 hg.repository(u, 'a', create=1)
19 hg.repository(u, 'a', create=1)
12 hg.repository(u, 'b', create=1)
20 hg.repository(u, 'b', create=1)
13 os.chdir('b')
21 os.chdir('b')
General Comments 0
You need to be logged in to leave comments. Login now