Commit fa493023 authored by Michael Howitz's avatar Michael Howitz

fixed test, so it does not break when using python 2.6 (previously a...

fixed test, so it does not break when using python 2.6 (previously a deprecation warning was displayed there inside the test output)
parent 244608ce
Make sure the bootstrap script actually works:: Make sure the bootstrap script actually works::
>>> import os, sys >>> import os, sys
>>> from os.path import dirname, join >>> from os.path import dirname, join
>>> import zc.buildout >>> import zc.buildout
...@@ -47,7 +47,7 @@ Make sure the bootstrap script actually works:: ...@@ -47,7 +47,7 @@ Make sure the bootstrap script actually works::
X... X...
d zc.buildout-...egg d zc.buildout-...egg
Now trying the `--version` option, that let you define a version for Now trying the `--version` option, that let you define a version for
`zc.buildout`. If not provided, bootstrap will look for the latest one. `zc.buildout`. If not provided, bootstrap will look for the latest one.
Let's try with an unknown version:: Let's try with an unknown version::
...@@ -66,17 +66,17 @@ Let's try with an unknown version:: ...@@ -66,17 +66,17 @@ Let's try with an unknown version::
<BLANKLINE> <BLANKLINE>
X X
Now let's try with `1.1.1`, which happens to exist:: Now let's try with `1.1.2`, which happens to exist::
>>> print 'X'; print system( >>> print 'X'; print system(
... zc.buildout.easy_install._safe_arg(sys.executable)+' '+ ... zc.buildout.easy_install._safe_arg(sys.executable)+' '+
... 'bootstrap.py --version 1.1.1'); print 'X' ... 'bootstrap.py --version 1.1.2'); print 'X'
... ...
X X
Generated script '/sample/bin/buildout'. Generated script '/sample/bin/buildout'.
<BLANKLINE> <BLANKLINE>
X X
Let's make sure the generated `buildout` script uses it:: Let's make sure the generated `buildout` script uses it::
>>> buildout_script = join(sample_buildout, 'bin', 'buildout') >>> buildout_script = join(sample_buildout, 'bin', 'buildout')
...@@ -86,7 +86,7 @@ Let's make sure the generated `buildout` script uses it:: ...@@ -86,7 +86,7 @@ Let's make sure the generated `buildout` script uses it::
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
'/sample/eggs/setuptools-...egg', '/sample/eggs/setuptools-...egg',
'/sample/eggs/zc.buildout-1.1.1...egg', '/sample/eggs/zc.buildout-1.1.2...egg',
] ]
<BLANKLINE> <BLANKLINE>
import zc.buildout.buildout import zc.buildout.buildout
......
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