Merge pull request #193254 from fmoda3/fix-debugpy-m1

python3Packages.debugpy: fix thread crashes in tests on aarch64-darwin
This commit is contained in:
Kira Bruneau 2022-09-30 15:37:47 -04:00 committed by GitHub
commit 9a97e910d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,15 @@ buildPythonPackage rec {
requests requests
]; ];
preCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
# https://github.com/python/cpython/issues/74570#issuecomment-1093748531
export no_proxy='*';
'';
postCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
unset no_proxy
'';
# Override default arguments in pytest.ini # Override default arguments in pytest.ini
pytestFlagsArray = [ pytestFlagsArray = [
"--timeout=0" "--timeout=0"