mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 04:43:19 +03:00
tests: make test-hgwebdir-paths use absolute_import
This commit is contained in:
parent
5865b15065
commit
f686137f10
@ -56,7 +56,6 @@
|
||||
tests/test-demandimport.py not using absolute_import
|
||||
tests/test-demandimport.py requires print_function
|
||||
tests/test-doctest.py not using absolute_import
|
||||
tests/test-hgwebdir-paths.py not using absolute_import
|
||||
tests/test-trusted.py requires print_function
|
||||
|
||||
#if py3exe
|
||||
|
@ -1,13 +1,21 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
from mercurial import hg, ui
|
||||
from mercurial.hgweb.hgwebdir_mod import hgwebdir
|
||||
from mercurial import (
|
||||
hg,
|
||||
ui as uimod,
|
||||
)
|
||||
from mercurial.hgweb import (
|
||||
hgwebdir_mod,
|
||||
)
|
||||
hgwebdir = hgwebdir_mod.hgwebdir
|
||||
|
||||
os.mkdir('webdir')
|
||||
os.chdir('webdir')
|
||||
|
||||
webdir = os.path.realpath('.')
|
||||
|
||||
u = ui.ui()
|
||||
u = uimod.ui()
|
||||
hg.repository(u, 'a', create=1)
|
||||
hg.repository(u, 'b', create=1)
|
||||
os.chdir('b')
|
||||
|
Loading…
Reference in New Issue
Block a user