Commit 9b27b823 authored by Jim Fulton's avatar Jim Fulton

In updating test to pass w Python 3.2, realized that the test had lost

it's meaning, since the behavior described is only exhibited in
verbose mode, although, arguably, buildout should do a better job os
providing forensic info in non-verbose mode when there's a failure.

Test meaning restored and passing w 3.2
parent added13d
...@@ -361,9 +361,10 @@ If we use the verbose switch, we can see where requirements are coming from: ...@@ -361,9 +361,10 @@ If we use the verbose switch, we can see where requirements are coming from:
def show_who_requires_missing_distributions(): def show_who_requires_missing_distributions():
""" """
When working with a lot of eggs, which require eggs recursively, it can When working with a lot of eggs, which require eggs recursively, it
be hard to tell why we're requiring things we can't find. Fortunately, can be hard to tell why we're requiring things we can't
buildout will tell us who's asking for something that we can't find. find. Fortunately, buildout will tell us who's asking for something
that we can't find. when run in verbose mode
>>> make_dist_that_requires(sample_buildout, 'sampley', ['demoneeded']) >>> make_dist_that_requires(sample_buildout, 'sampley', ['demoneeded'])
>>> make_dist_that_requires(sample_buildout, 'samplea', ['sampleb']) >>> make_dist_that_requires(sample_buildout, 'samplea', ['sampleb'])
...@@ -380,20 +381,26 @@ buildout will tell us who's asking for something that we can't find. ...@@ -380,20 +381,26 @@ buildout will tell us who's asking for something that we can't find.
... eggs = samplea ... eggs = samplea
... ''') ... ''')
>>> print_(system(buildout), end='') >>> print_(system(buildout+' -v'), end='') # doctest: +ELLIPSIS
Develop: '/sample-buildout/sampley' Installing ...
Develop: '/sample-buildout/samplea' Installing 'samplea'.
Develop: '/sample-buildout/sampleb' We have a develop egg: samplea 1
Installing eggs. Getting required 'sampleb'
Couldn't find index page for 'demoneeded' (maybe misspelled?) required by samplea 1.
Getting distribution for 'demoneeded'. We have a develop egg: sampleb 1
Getting required 'sampley'
required by sampleb 1.
We have a develop egg: sampley 1
Getting required 'demoneeded'
required by sampley 1.
We have no distributions for demoneeded that satisfies 'demoneeded'.
...
While: While:
Installing eggs. Installing eggs.
Getting distribution for 'demoneeded'. Getting distribution for 'demoneeded'.
Error: Couldn't find a distribution for 'demoneeded'. Error: Couldn't find a distribution for 'demoneeded'.
""" """
def test_comparing_saved_options_with_funny_characters(): def test_comparing_saved_options_with_funny_characters():
""" """
If an option has newlines, extra/odd spaces or a %, we need to make sure If an option has newlines, extra/odd spaces or a %, we need to make sure
......
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