The file diagnose.py has a test called check_python_import which is run during the unit testing. This function is failing with the message "'FrozenImporter' has no attribute 'get_filename'".
Apparently pkgutil.get_loader() can return different types of loaders.
Description
The file diagnose.py has a test called check_python_import which is run during the unit testing. This function is failing with the message "'FrozenImporter' has no attribute 'get_filename'".
Apparently pkgutil.get_loader() can return different types of loaders.
Related Issue
Error "'FrozenImporter' has no attribute 'get_filename'" when running unit tests #395
Motivation and Context
This fixes an issue creating false failures on unit tests.
How Has This Been Tested?
Tested on Raspberry Pi 5 and x86_64 laptop. This should not affect other areas of the code.
Types of changes
Checklist: