Merge pull request #3927 from jtratner/fix-indentation-error-in-assert-produces-warning

TST: Fix error in assert_produces_warning.
CLN: Remove unused Exceptions throughout
CLN: Remove 'DateConversionError' that is never raised anywhere

CLN: Remove TimeSeriesError that was never used

CLN: Remove unused 'PanelError'