Warn and Error dont show the correct file. Can be reproduces in the test.py file. 