Issue #19447: Add a test case to py_compile.compile() to make sure
it don't raise an exception if doraise is False.

Patch by Bohuslav "Slavek" Kabrda.
Issue #19447: Use importlib.util.cache_from_source() instead of ``bad_coding + 'c'``.

Thanks to Arfrever Frehtes Taifersar Arahesis.