The script test_format_switching.py doesn't run
test_format_switching.py
Fix the test_format_switching.py script
None.
Related to #1469