Improved formatting of unsupported sparse matrices in swapping
Merge pull request #3140 from MechCoder/small_fixes

TST Improved handling of unsupported sparse matrices in swapping