se2p / pynguin

The PYthoN General UnIt Test geNerator is a test-generation tool for Python
https://www.pynguin.eu
MIT License
1.22k stars 74 forks source link

Add support for parsing module aliases #58

Closed BergLucas closed 4 months ago

BergLucas commented 5 months ago

Hello,

Thank you for creating this project. I think I've discovered a bug that I've explained in issue #57 and I'm making this pull request to try to fix the problem.

My solution consists of a fallback when importing a module in order to deal with the case where the module is in fact an alias of another module such as numpy.char for example.

What do you think of this solution?

Kind regards and have a nice day!

stephanlukasczyk commented 4 months ago

Thanks for the PR, I'll incorporate it in the next release of Pynguin, which I'll do today.