feiyun0112
Honored Contributor

Yes it is expected and documented behavior. Module names as
mentioned in import statements must be valid Python identifiers.
Hyphens are not allowed in identifiers.

Try renaming to test_package.

https://bugs.python.org/issue909226