Merge pull request #9854 from valeriosetti/issue73-3.6

[Backport 3.6] Move tests/scripts/check_names.py to the framework