Commit 81122556 authored by Gary Poster's avatar Gary Poster

fix tests with Python 2.5

parent 25fc6dfc
...@@ -1901,10 +1901,10 @@ results for the interpreter and for the script. ...@@ -1901,10 +1901,10 @@ results for the interpreter and for the script.
... "print tellmy.version.__version__\n" + ... "print tellmy.version.__version__\n" +
... "import tellmy.fortune\n" + ... "import tellmy.fortune\n" +
... "print tellmy.fortune.__version__\n" + ... "print tellmy.fortune.__version__\n" +
... "'") ... "'") # doctest: +ELLIPSIS
1.0
1.0 1.0
<BLANKLINE> 1.0...
>>> print system(join('bin', 'demo')) >>> print system(join('bin', 'demo'))
1.0 1.0
1.0 1.0
......
...@@ -35,7 +35,7 @@ install the demo package using Python 2.4. ...@@ -35,7 +35,7 @@ install the demo package using Python 2.4.
... index = http://www.python.org/pypi/ ... index = http://www.python.org/pypi/
... ...
... [python2.4] ... [python2.4]
... executable = %(python23)s ... executable = %(python24)s
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
...@@ -43,7 +43,7 @@ install the demo package using Python 2.4. ...@@ -43,7 +43,7 @@ install the demo package using Python 2.4.
... find-links = %(server)s ... find-links = %(server)s
... python = python2.4 ... python = python2.4
... interpreter = py-demo ... interpreter = py-demo
... """ % dict(server=link_server, python23=other_executable)) ... """ % dict(server=link_server, python24=other_executable))
Now, if we run the buildout: Now, if we run the buildout:
...@@ -81,8 +81,8 @@ And the generated scripts invoke Python 2.4: ...@@ -81,8 +81,8 @@ And the generated scripts invoke Python 2.4:
>>> shebang = f.readline().strip() >>> shebang = f.readline().strip()
>>> if shebang[:3] == '#!"' and shebang[-1] == '"': >>> if shebang[:3] == '#!"' and shebang[-1] == '"':
... shebang = '#!'+shebang[3:-1] ... shebang = '#!'+shebang[3:-1]
>>> shebang == '#!' + other_executable >>> assert shebang == '#!%s -S' % other_executable, (
True ... repr((shebang, '#!' + other_executable)))
>>> print f.read(), # doctest: +NORMALIZE_WHITESPACE >>> print f.read(), # doctest: +NORMALIZE_WHITESPACE
<BLANKLINE> <BLANKLINE>
import sys import sys
...@@ -104,8 +104,8 @@ And the generated scripts invoke Python 2.4: ...@@ -104,8 +104,8 @@ And the generated scripts invoke Python 2.4:
>>> shebang = f.readline().strip() >>> shebang = f.readline().strip()
>>> if shebang[:3] == '#!"' and shebang[-1] == '"': >>> if shebang[:3] == '#!"' and shebang[-1] == '"':
... shebang = '#!'+shebang[3:-1] ... shebang = '#!'+shebang[3:-1]
>>> shebang == '#!' + other_executable >>> assert shebang == '#!%s -S' % other_executable, (
True ... repr((shebang, '#!' + other_executable)))
>>> print f.read(), # doctest: +NORMALIZE_WHITESPACE >>> print f.read(), # doctest: +NORMALIZE_WHITESPACE
<BLANKLINE> <BLANKLINE>
import sys import sys
......
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