Commit 5e6bd1e5 authored by Xavier Thompson's avatar Xavier Thompson

[fix] Adapt tests to extra-paths changes

Now that extra-paths is sys.path by default instead of the legacy
value of the specific paths of zc.buildout and its dependencies,
some tests fail because some eggs in sys.path that were previously
not in extra-paths were instead found on sys.path by package index's
search_path and subsequently installed in ./eggs, whereas they are
now directly seen as already installed at their original location.
parent 336be55f
...@@ -113,6 +113,7 @@ update our Buildout configuration to add a ``bobo`` part: ...@@ -113,6 +113,7 @@ update our Buildout configuration to add a ``bobo`` part:
[buildout] [buildout]
parts = bobo parts = bobo
extra-paths = legacy
[bobo] [bobo]
recipe = zc.recipe.egg recipe = zc.recipe.egg
...@@ -426,6 +427,7 @@ where you list them, as in: ...@@ -426,6 +427,7 @@ where you list them, as in:
>>> prefix = """ >>> prefix = """
... [buildout] ... [buildout]
... parts = bobo ... parts = bobo
... extra-paths = legacy
... """ ... """
>>> with open('buildout.cfg', 'w') as f: >>> with open('buildout.cfg', 'w') as f:
... _ = f.write(prefix) ... _ = f.write(prefix)
...@@ -458,6 +460,7 @@ The more common way to pin a version is using a ``versions`` section: ...@@ -458,6 +460,7 @@ The more common way to pin a version is using a ``versions`` section:
[buildout] [buildout]
parts = bobo server parts = bobo server
extra-paths = legacy
[bobo] [bobo]
recipe = zc.recipe.egg recipe = zc.recipe.egg
...@@ -489,6 +492,7 @@ version requirements in their own file: ...@@ -489,6 +492,7 @@ version requirements in their own file:
[buildout] [buildout]
extends = versions.cfg extends = versions.cfg
parts = bobo server parts = bobo server
extra-paths = legacy
[bobo] [bobo]
recipe = zc.recipe.egg recipe = zc.recipe.egg
......
...@@ -21,6 +21,7 @@ Buildout work better: ...@@ -21,6 +21,7 @@ Buildout work better:
>>> write("""\ >>> write("""\
... [buildout] ... [buildout]
... parts = bobo ... parts = bobo
... extra-paths = legacy
... [bobo] ... [bobo]
... recipe=zc.recipe.egg ... recipe=zc.recipe.egg
... eggs=bobo ... eggs=bobo
......
...@@ -248,6 +248,7 @@ is typically used to set up a shared egg or cache directory, as in: ...@@ -248,6 +248,7 @@ is typically used to set up a shared egg or cache directory, as in:
>>> write("""\ >>> write("""\
... [buildout] ... [buildout]
... parts = bobo ... parts = bobo
... extra-paths = legacy
... [bobo] ... [bobo]
... recipe=zc.recipe.egg ... recipe=zc.recipe.egg
... eggs=bobo ... eggs=bobo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment