justpy-org / justpy

An object oriented high-level Python Web Framework that requires no frontend programming
https://justpy.io
Apache License 2.0
1.22k stars 96 forks source link

shutdown for unit tests using psutil #474

Closed WolfgangFahl closed 2 years ago

WolfgangFahl commented 2 years ago

On MacOS this doesn't work see:

TypeError: cannot pickle '_io.TextIOWrapper' object which e.g. has a lengthy discussion in https://github.com/GoogleCloudPlatform/gsutil/issues/961

I made the code modal now to make sure the CI runs and non MacOS environments might have a simpler solution while waiting for an upstream solution in https://github.com/encode/uvicorn/discussions/1103. I also started the discussion https://github.com/encode/uvicorn/discussions/1617 upstream.