Issue #12618: create unit tests for the py_compile module