##// 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 56 tests/test-demandimport.py not using absolute_import
57 57 tests/test-demandimport.py requires print_function
58 58 tests/test-doctest.py not using absolute_import
59 tests/test-hgwebdir-paths.py not using absolute_import
60 59 tests/test-trusted.py requires print_function
61 60
62 61 #if py3exe
@@ -1,13 +1,21 b''
1 from __future__ import absolute_import
2
1 3 import os
2 from mercurial import hg, ui
3 from mercurial.hgweb.hgwebdir_mod import hgwebdir
4 from mercurial import (
5 hg,
6 ui as uimod,
7 )
8 from mercurial.hgweb import (
9 hgwebdir_mod,
10 )
11 hgwebdir = hgwebdir_mod.hgwebdir
4 12
5 13 os.mkdir('webdir')
6 14 os.chdir('webdir')
7 15
8 16 webdir = os.path.realpath('.')
9 17
10 u = ui.ui()
18 u = uimod.ui()
11 19 hg.repository(u, 'a', create=1)
12 20 hg.repository(u, 'b', create=1)
13 21 os.chdir('b')
General Comments 0
You need to be logged in to leave comments. Login now