[py-dev] Buildbot failure in test_apigen_example.py
Grig Gheorghiu
grig at agilistas.org
Mon Jan 22 22:49:00 CET 2007
_______________________________________________________________________________
__________ entrypoint: TestApiPageBuilder().test_build_callable_view __________
def test_build_callable_view(self):
ds, dsa = get_dsa(self.fs_root, self.pkg_name)
t = Tracer(ds)
t.start_tracing()
pkg = __import__(self.pkg_name)
pkg.main.sub.func(10)
pkg.main.sub.func(pkg.main.SomeClass(10))
t.end_tracing()
apb = ApiPageBuilder(self.base, self.linker, dsa)
snippet = apb.build_callable_view('main.sub.func')
html = snippet.unicode()
print html
> run_string_sequence_test(html, [
'arg1 :: AnyOf(',
'href="',
'Class SomeClass',
'Int>',
'return value :: <None>',
'source:',
'def func(arg1):',
])
[/tmp/pylib/py/apigen/testing/test_apigen_example.py:130]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def run_string_sequence_test(data, seq):
currpos = -1
for s in seq:
newpos = data.find(s)
if currpos >= newpos:
if newpos == -1:
message = 'not found'
else:
message = 'unexpected position: %s' % (newpos,)
E py.test.fail('string %r: %s' % (s, message))
> Failed: string 'Int>': unexpected position: 123
[/tmp/pylib/py/apigen/testing/test_apigen_example.py:20]
- - - - - - - - - test_build_callable_view: recorded stdout - - - - - - - - -
<div style="margin-left: 10em">
<h2>func
<em>(arg1)</em></h2>
<ul>
<div>where:</div>
<li>arg1 :: AnyOf(<Int>, <Instance of
<a href="unknown_link_main.SomeClass">Class SomeClass</a>>)</li>
<li>return value :: <None></li></ul>
<div style="white-space: pre">docstring</div>
<div>
<br/>
<a href="unknown_link_/tmp/pytest-788/apigen_example/pkg/func.py">source:</a>
<br/>
<div>
<pre>def func(arg1):</pre></div></div></div>
_______________________________________________________________________________
===== tests finished: 1375 passed, 1 failed, 64 skipped in 135.67 seconds =====
The full log is here:
http://www.python.org/dev/buildbot/community/all/x86%20Ubuntu%20Breezy%20trunk/builds/291/step-py.lib/0
Grig
More information about the Pytest-dev
mailing list