Warnings in the test suite
As set up in CI (and when invoking pytest directly), the warnings are swallowed, including deprecation warnings. This potentially makes us not update our own test code and use deprecated API of dependencies. Below are all the warnings I see when running the test suite:
~$ python -c 'import kwant; kwant.test()' > /dev/null
/usr/local/lib/python3.5/dist-packages/kwant/continuum/_common.py:155: RuntimeWarning: Input expression is already SymPy object: "locals" will not be used.
'"locals" will not be used.', RuntimeWarning)
/usr/local/lib/python3.5/dist-packages/kwant/linalg/mumps.py:302: RuntimeWarning: Missing analysis although reuse_analysis=True. New analysis is performed.
"New analysis is performed.", RuntimeWarning)
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_builder.py:691: RuntimeWarning: fill(): None of the starting sites is in the desired shape
target.fill(template_1d, line_200, start)
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_builder.py:691: RuntimeWarning: fill(): None of the starting sites is in the desired shape
target.fill(template_1d, line_200, start)
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_builder.py:719: RuntimeWarning: fill(): The target builder already contains all starting sites.
target.fill(template_1d, line_200, g(0, 0))
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_builder.py:783: RuntimeWarning: fill(): The target builder already contains all starting sites.
target.fill(template, lambda x: True, lat(0))
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_plotter.py:186: RuntimeWarning: When finalizing lead 0: Infinite system with disconnected cells.
syst = syst_2d().finalized().leads[0]
/usr/local/lib/python3.5/dist-packages/mpl_toolkits/mplot3d/axes3d.py:1025: UserWarning: Axes3D.figure.canvas is 'None', mouse rotation disabled. Set canvas then call Axes3D.mouse_init().
warnings.warn('Axes3D.figure.canvas is \'None\', mouse rotation disabled. Set canvas then call Axes3D.mouse_init().')
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_plotter.py:411: RuntimeWarning: When finalizing lead 0: Infinite system with disconnected cells.
syst = syst_2d().finalized()
/usr/local/lib/python3.5/dist-packages/mpl_toolkits/mplot3d/axes3d.py:1025: UserWarning: Axes3D.figure.canvas is 'None', mouse rotation disabled. Set canvas then call Axes3D.mouse_init().
warnings.warn('Axes3D.figure.canvas is \'None\', mouse rotation disabled. Set canvas then call Axes3D.mouse_init().')
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_wraparound.py:274: KwantDeprecationWarning: The += operator of builders is deprecated. Use 'Builder.update()' instead.
syst3 += syst1
/usr/local/lib/python3.5/dist-packages/kwant/tests/test_wraparound.py:275: KwantDeprecationWarning: The += operator of builders is deprecated. Use 'Builder.update()' instead.
syst3 += syst2