[svn r38390] refining the logic: for inplace-localhosts ("optimized localhost")
we do not add any relative path. --HG-- branch : trunk
This commit is contained in:
@@ -29,9 +29,9 @@ class TestHostInfo(DirSetup):
|
||||
assert not x.relpath
|
||||
|
||||
def test_addrel(self):
|
||||
py.test.raises(ValueError, """
|
||||
HostInfo("localhost:", addrel="whatever")
|
||||
""")
|
||||
host = HostInfo("localhost:", addrel="whatever")
|
||||
assert host.inplacelocal
|
||||
assert not host.relpath
|
||||
host = HostInfo("localhost:/tmp", addrel="base")
|
||||
assert host.relpath == "/tmp/base"
|
||||
host = HostInfo("localhost:tmp", addrel="base2")
|
||||
|
||||
Reference in New Issue
Block a user