Re: Help for Python mock test suite needed

2016-08-17 Thread Barry Warsaw
On Aug 17, 2016, at 01:58 PM, Andreas Tille wrote:

>This exactly was my question:  Is there any advise how to inject
>sensible debugging code or any other strategies to find out what might
>be the problem.
>
>> So you can use the full power of your development environment to hunt
>> the problem: an interactive debugging session, etc. Use your Python
>> skills :-)  
>
>I'm afraid at first I need to enhance my Python skills ...

pdb is debugging 101: https://docs.python.org/3/library/pdb.html

Specifically, add this line to the code at the point where you want to start
inspecting the state of the program:

import pdb; pdb.set_trace()

Now run the test suite and when you hit the breakpoint, you can print values,
inspect object, step through calls, etc.  It may or may not help you solve the
problem, but you'll get a much better sense of what's actually going on, and
it should at least improve the quality of an upstream bug report.

Cheers,
-Barry



Re: Help for Python mock test suite needed

2016-08-17 Thread Andreas Tille
On Tue, Aug 16, 2016 at 06:23:43AM +1000, Ben Finney wrote:
> Andreas Tille  writes:
> 
> > Yes, this is what I guessed from the log.  However, how can I find out
> > why exactly the command is not called?
> 
> That seems to be a question to take up with the upstream developer,

Yes.

> or just normal Python debugging.

This exactly was my question:  Is there any advise how to inject
sensible debugging code or any other strategies to find out what might
be the problem.

> So you can use the full power of your development environment to hunt
> the problem: an interactive debugging session, etc. Use your Python
> skills :-)

I'm afraid at first I need to enhance my Python skills ...

Kind regards

Andreas.

-- 
http://fam-tille.de



PAPT membership request

2016-08-17 Thread Filip Pytloun
Hello,

can someone please approve my PAPT membership (already requested on
Alioth)?

Docs states that:

"Any Python Modules Packaging Team member who wishes to integrate his
packages in the team can do so without requesting access"

but I get permission denied when creating SVN repository for new package
(vdirsyncer) because I am not in python-apps group.

Maybe I don't understand correctly the "integrate packages in the team"
or that statement doesn't seem to be true?

Thank you,
Filip


signature.asc
Description: Digital signature