Use `os.path.splitext` to check file extensions.
Merge pull request #2681 from grandquista/grandquista/Permit_period_in_test_name

Use `os.path.splitext` to check file extensions.