Hello!
I'm currently testing the rpm version for opensuse. As the newer Versions are
running with python 2.7, I'm running the tests using python 2.7. When i execute
the tests, I get a many, many failures like the following:
-----------------------------------------------------------------------------
1) ERROR: Doctest: core.controllers.basePlugin.basePlugin.basePlugin.getDesc
Traceback (most recent call last):
/usr/lib/python2.7/site-packages/nose/plugins/doctests.py line 395 in
tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _test_res_
Unfortunately I'm not experienced in python so much, therefore I can't
interpret this kind of error...
In total I get "5 FAILED, 134 errors, 1 skipped (87 tests passed)", nearly all
errors are the same as the one in the top.
The errors are the following, I hope you can interprete them...
Best regards,
Johannes
6) FAIL: Doctest:
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login
Traceback (most recent call last):
/usr/lib64/python2.7/doctest.py line 2166 in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
198, in login
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
210, in core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login
Failed example:
sf = sourceforge()
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login[0]>", line
1, in <module>
sf = sourceforge()
NameError: name 'sourceforge' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
211, in core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login
Failed example:
sf.login('fake','12345')
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login[1]>", line
1, in <module>
sf.login('fake','12345')
NameError: name 'sf' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
213, in core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login
Failed example:
sf.login('unittest','unittest12345')
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.login[2]>", line
1, in <module>
sf.login('unittest','unittest12345')
NameError: name 'sf' is not defined
-----------------------------------------------------------------------------
8) FAIL: Doctest:
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Traceback (most recent call last):
/usr/lib64/python2.7/doctest.py line 2166 in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
232, in report_bug
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
250, in
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Failed example:
sf = sourceforge()
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug[0]>",
line 1, in <module>
sf = sourceforge()
NameError: name 'sourceforge' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
253, in
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Failed example:
ticket_url = sf.report_bug(summary,userdesc)
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug[3]>",
line 1, in <module>
ticket_url = sf.report_bug(summary,userdesc)
NameError: name 'sf' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
254, in
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Failed example:
ticket_url.startswith('http://sourceforge.net/apps/trac/w3af/ticket/1')
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug[4]>",
line 1, in <module>
ticket_url.startswith('http://sourceforge.net/apps/trac/w3af/ticket/1')
NameError: name 'ticket_url' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
258, in
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Failed example:
sf = sourceforge()
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug[5]>",
line 1, in <module>
sf = sourceforge()
NameError: name 'sourceforge' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
259, in
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Failed example:
sf.login('unittest','unittest12345')
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug[6]>",
line 1, in <module>
sf.login('unittest','unittest12345')
NameError: name 'sf' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
263, in
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Failed example:
ticket_url = sf.report_bug(summary,userdesc)
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug[9]>",
line 1, in <module>
ticket_url = sf.report_bug(summary,userdesc)
NameError: name 'sf' is not defined
----------------------------------------------------------------------
File
"/var/tmp/w3af/w3af/core/controllers/easy_contribution/sourceforge.py", line
264, in
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug
Failed example:
ticket_url.startswith('http://sourceforge.net/apps/trac/w3af/ticket/1')
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.controllers.easy_contribution.sourceforge.SourceforgeHTTP.report_bug[10]>",
line 1, in <module>
ticket_url.startswith('http://sourceforge.net/apps/trac/w3af/ticket/1')
NameError: name 'ticket_url' is not defined
-----------------------------------------------------------------------------
16) FAIL: Doctest:
core.data.bloomfilter.bloomfilter.scalable_bloomfilter.__init__
Traceback (most recent call last):
/usr/lib64/python2.7/doctest.py line 2166 in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
core.data.bloomfilter.bloomfilter.scalable_bloomfilter.__init__
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line 122,
in __init__
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line 145,
in core.data.bloomfilter.bloomfilter.scalable_bloomfilter.__init__
Failed example:
b.add(unicode_string)
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.data.bloomfilter.bloomfilter.scalable_bloomfilter.__init__[4]>", line 1,
in <module>
b.add(unicode_string)
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line
204, in add
if key in self:
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line
187, in __contains__
if key in f:
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line
83, in __contains__
return str(key) in self.bf
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-1: ordinal not in range(128)
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line 147,
in core.data.bloomfilter.bloomfilter.scalable_bloomfilter.__init__
Failed example:
unicode_string in b
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest
core.data.bloomfilter.bloomfilter.scalable_bloomfilter.__init__[5]>", line 1,
in <module>
unicode_string in b
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line
187, in __contains__
if key in f:
File "/var/tmp/w3af/w3af/core/data/bloomfilter/bloomfilter.py", line
83, in __contains__
return str(key) in self.bf
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-1: ordinal not in range(128)
-----------------------------------------------------------------------------
40) FAIL: Doctest: core.data.kb.info.info._convert_to_range
Traceback (most recent call last):
/usr/lib64/python2.7/doctest.py line 2166 in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
core.data.kb.info.info._convert_to_range
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 165, in
_convert_to_range
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 171, in
core.data.kb.info.info._convert_to_range
Failed example:
inf._convert_to_range([1, 2, 3, 4, 5, 6])
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest core.data.kb.info.info._convert_to_range[1]>", line 1,
in <module>
inf._convert_to_range([1, 2, 3, 4, 5, 6])
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 207, in
_convert_to_range
res.append(_('%s to %s') % (first, num))
TypeError: 'unicode' object is not callable
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 173, in
core.data.kb.info.info._convert_to_range
Failed example:
inf._convert_to_range([1, 2, 3, 6])
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest core.data.kb.info.info._convert_to_range[2]>", line 1,
in <module>
inf._convert_to_range([1, 2, 3, 6])
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 197, in
_convert_to_range
res.append(_('%s to %s') % (first, last))
TypeError: 'unicode' object is not callable
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 175, in
core.data.kb.info.info._convert_to_range
Failed example:
inf._convert_to_range([1, 2, 3, 6, 7, 8])
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest core.data.kb.info.info._convert_to_range[3]>", line 1,
in <module>
inf._convert_to_range([1, 2, 3, 6, 7, 8])
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 197, in
_convert_to_range
res.append(_('%s to %s') % (first, last))
TypeError: 'unicode' object is not callable
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 177, in
core.data.kb.info.info._convert_to_range
Failed example:
inf._convert_to_range([1, 2, 3, 6, 7, 8, 10])
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest core.data.kb.info.info._convert_to_range[4]>", line 1,
in <module>
inf._convert_to_range([1, 2, 3, 6, 7, 8, 10])
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 197, in
_convert_to_range
res.append(_('%s to %s') % (first, last))
TypeError: 'unicode' object is not callable
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 179, in
core.data.kb.info.info._convert_to_range
Failed example:
inf._convert_to_range([1, 2, 3, 10, 20, 30])
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest core.data.kb.info.info._convert_to_range[5]>", line 1,
in <module>
inf._convert_to_range([1, 2, 3, 10, 20, 30])
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 197, in
_convert_to_range
res.append(_('%s to %s') % (first, last))
TypeError: 'unicode' object is not callable
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 181, in
core.data.kb.info.info._convert_to_range
Failed example:
inf._convert_to_range([1, 3, 10, 20, 30])
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest core.data.kb.info.info._convert_to_range[6]>", line 1,
in <module>
inf._convert_to_range([1, 3, 10, 20, 30])
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 201, in
_convert_to_range
res.append(_('and') + ' %s' % num)
TypeError: 'unicode' object is not callable
----------------------------------------------------------------------
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 183, in
core.data.kb.info.info._convert_to_range
Failed example:
len(inf._convert_to_range(range(0, 30000, 2)).split())
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest core.data.kb.info.info._convert_to_range[7]>", line 1,
in <module>
len(inf._convert_to_range(range(0, 30000, 2)).split())
File "/var/tmp/w3af/w3af/core/data/kb/info.py", line 201, in
_convert_to_range
res.append(_('and') + ' %s' % num)
TypeError: 'unicode' object is not callable
-----------------------------------------------------------------------------
102) FAIL: test_get_links_results_unique
(core.data.searchEngines.tests.test_googleSearchEngine.test_googleSearchEngine)
Traceback (most recent call last):
core/data/searchEngines/tests/test_googleSearchEngine.py line 57 in
test_get_links_results_unique
self.assertTrue(len(results) == len(set([r.URL for r in results])))
AssertionError: False is not true
--
Johannes Weberhofer
Weberhofer GmbH, Austria, Vienna
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
W3af-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/w3af-develop