Commit 42b15c19 authored by Jim Fulton's avatar Jim Fulton

another test passing w 3.2

parent 85d7872c
...@@ -38,10 +38,11 @@ This document tests the 3rd option. ...@@ -38,10 +38,11 @@ This document tests the 3rd option.
>>> sample_buildout = tmpdir('sample') >>> sample_buildout = tmpdir('sample')
>>> cd(sample_buildout) >>> cd(sample_buildout)
>>> import sys >>> import sys
>>> print_(system("%s -S %s init demo" % (sys.executable, bootstrap_py)), >>> print_('X' +
... end='') ... system("%s -S %s init demo" % (sys.executable, bootstrap_py)),
... end='\n===')
... # doctest: +ELLIPSIS ... # doctest: +ELLIPSIS
Downloading http://pypi.python.org/packages/source/d/distribute/... X...
Creating '/sample/buildout.cfg'. Creating '/sample/buildout.cfg'.
Creating directory '/sample/bin'. Creating directory '/sample/bin'.
Creating directory '/sample/parts'. Creating directory '/sample/parts'.
...@@ -57,6 +58,8 @@ This document tests the 3rd option. ...@@ -57,6 +58,8 @@ This document tests the 3rd option.
Got demoneeded 1.2c1. Got demoneeded 1.2c1.
Generated script '/sample/bin/demo'. Generated script '/sample/bin/demo'.
Generated interpreter '/sample/bin/py'. Generated interpreter '/sample/bin/py'.
...
===
If we look at the scripts generated, se see that the -S option is If we look at the scripts generated, se see that the -S option is
provided to the Python executable: provided to the Python executable:
...@@ -79,7 +82,7 @@ The -S option is also used when invoking setup scripts. ...@@ -79,7 +82,7 @@ The -S option is also used when invoking setup scripts.
>>> write('proj', 'setup.py', """ >>> write('proj', 'setup.py', """
... from distutils.core import setup ... from distutils.core import setup
... import sys ... import sys
... print_('site:', 'site' in sys.modules) ... sys.stdout.write('site: %s\\n' % ('site' in sys.modules))
... setup(name='hassite') ... setup(name='hassite')
... """) ... """)
>>> print_(system(join('bin', 'buildout')+' setup proj sdist')) >>> print_(system(join('bin', 'buildout')+' setup proj sdist'))
......
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