giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.31k stars 1.39k forks source link

[Enhancement] Refactoring of test #2377

Closed antoninoLorenzo closed 8 months ago

antoninoLorenzo commented 8 months ago

I am using psutil for a personal project for which I need to compile a Python script; during the compilation process I get prompted a warning that there are tests inside the code of psutil, for this reason, I propose to refactor psutil/tests out of psutil folder.

However, if there are any specific reasons to have tests inside of the psutil folder I specify that this isn't a problem but an enhancement. PS: I am using Nuitka for compilation.

giampaolo commented 8 months ago

The reason why psutil tests are under psutil/tests is because you can test psutil installation with "python3 -m psutil.tests". Basically they are installed along side psutil on purpose.