Commit e8f84238 authored by Jim Fulton's avatar Jim Fulton

Reformatting

parent de24ef47
...@@ -21,7 +21,7 @@ from zope.testing import doctest, renormalizing ...@@ -21,7 +21,7 @@ from zope.testing import doctest, renormalizing
import zc.buildout.testing import zc.buildout.testing
def buildout_error_handling(): def buildout_error_handling():
r'''Buildout error handling r"""Buildout error handling
Asking for a section that doesn't exist, yields a key error: Asking for a section that doesn't exist, yields a key error:
...@@ -44,14 +44,14 @@ Asking for an option that doesn't exist, a MissingOption error is raised: ...@@ -44,14 +44,14 @@ Asking for an option that doesn't exist, a MissingOption error is raised:
It is an error to create a variable-reference cycle: It is an error to create a variable-reference cycle:
>>> write(sample_buildout, 'buildout.cfg', >>> write(sample_buildout, 'buildout.cfg',
... """ ... '''
... [buildout] ... [buildout]
... develop = recipes ... develop = recipes
... parts = data_dir debug ... parts = data_dir debug
... x = ${buildout:y} ... x = ${buildout:y}
... y = ${buildout:z} ... y = ${buildout:z}
... z = ${buildout:x} ... z = ${buildout:x}
... """) ... ''')
>>> print system(os.path.join(sample_buildout, 'bin', 'buildout')), >>> print system(os.path.join(sample_buildout, 'bin', 'buildout')),
... # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS ... # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
...@@ -60,8 +60,7 @@ It is an error to create a variable-reference cycle: ...@@ -60,8 +60,7 @@ It is an error to create a variable-reference cycle:
ValueError: ('Circular references', ValueError: ('Circular references',
[('buildout', 'y'), ('buildout', 'z'), ('buildout', 'x')], [('buildout', 'y'), ('buildout', 'z'), ('buildout', 'x')],
('buildout', 'y')) ('buildout', 'y'))
"""
'''
def linkerSetUp(test): def linkerSetUp(test):
zc.buildout.testing.buildoutSetUp(test, clear_home=False) zc.buildout.testing.buildoutSetUp(test, clear_home=False)
......
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