Use proper xunit format for some test....
Use proper xunit format for some test.
In particular we now can use proper methods to check that some warnings
are raised instead of making sure the test is printed. As pytest
captures warning by default this add compatibility with pytest.