Message5678
Hi John:
In message <e741293b-947c-0f5e-6774-e0df1ae25452@jerrykan.com>,
John Kristensen writes:
>John Kristensen added the comment:
>On 28/06/16 08:26, John Rouillard wrote:
>> Well it's better but postgres tests still being run.
>
>Check to see if you have the 'psycopg' python package installed. The
>tests rely on using 'roundup.backend.have_backend()'[1] to determine if
>the backend is available and will attempt to run the tests if it returns
>True. The 'have_backend()' essentially returns True for postgresql if
>the 'psycopg' package is installed.
Hmm, mysql IIRC tries to conenct to the db as part of have_backend()
or some wrapper around have_backend() in the tests. If it can't
connect it skips.
I'll see if I can figure out how mysql handles this as I have both
libraries installed just not the databases.
>> [elided tests being skipped that shouldn't be.]
>It seems as though 'pytest.mark.skip()' bug[2] taints any test that
>shares a parent test class, not just the other tests that are marked to
>be skipped by pytest - which is what I thought the problem was.
>
>I'll do a bit more looking to see if an improved work-around can be found.
Thanks for trying to track this down. |
|
Date |
User |
Action |
Args |
2016-06-28 12:08:22 | rouilj | set | recipients:
+ rouilj, jerrykan |
2016-06-28 12:08:21 | rouilj | link | issue2550910 messages |
2016-06-28 12:08:21 | rouilj | create | |
|