Neither pdb or print() displays the bug

Rich Shepard rshepard at appl-ecosys.com
Wed Jun 2 08:33:14 EDT 2021


On Wed, 2 Jun 2021, Peter Otten wrote:

> Do you have unit tests? Those are an excellent tool to ensure that the
> components of an application work as expected and that those components
> have well-defined interfaces. Debugging a failing unittest is usually
> easier than to debug a complex application. While I don't know if there is
> a convenient way to test the GUI everything else should run reliably
> *before* connecting it with the GUI.

Peter,

I believe there is a way to apply unit tests to PyQt and I'll certainly
learn to take this testing-while-developing approach.

Thanks,

Rich


More information about the Python-list mailing list