On 06/16/2011 05:33 PM, Jakub Wilk wrote:
> * Nikolaus Rath <nikol...@rath.org>, 2011-06-16, 14:40:
>> This looked fishy to me as well, and not-applying it fixes the above
>> problem. However, it breaks the test of the new docstring_signature
>> feature instead:
>>
>> ======================================================================
>> FAIL: test_autodoc.test_generate
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "/usr/lib/pymodules/python2.6/nose/case.py", line 187, in runTest
>>    self.test(*self.arg)
>>  File "/home/nikratio/tmp/sphinx/tests/test_autodoc.py", line 509, in
>> test_generate
>>    'test_autodoc.DocstringSig.meth')
>>  File "/home/nikratio/tmp/sphinx/tests/test_autodoc.py", line 356, in
>> assert_result_contains
>>    assert item in directive.result
>> AssertionError
>>
>> ...at least unless I'm not correctly activating the feature for this
>> test. Do you know if I need to do anything else than adding
>>
>>        docstring_signature = True,
>>
>> to options in setup_module()?
> 
> Hmm, with the current implementation you can't really change signature
> extraction behavior by modifying options in setup_module[0].
> 
> You could try setting
> 
>     directive.env.config.autodoc_docstring_signature = True
> 
> before the test that requires extracting signature from docstring.


Thanks for your help! Now everything is building just fine. The feature
is disabled by default, and it works when explicitly enabled.

When do you plan to make the next regular release?


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to