Merge #161611: python3Packages.uvloop: fix tests on Darwin
...into staging
This commit is contained in:
commit
ab0e692ac7
1 changed files with 6 additions and 2 deletions
|
@ -62,8 +62,12 @@ buildPythonPackage rec {
|
||||||
"tests/test_sourcecode.py"
|
"tests/test_sourcecode.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
# force using installed/compiled uvloop vs source by moving tests to temp dir
|
preCheck = lib.optionalString stdenv.isDarwin ''
|
||||||
preCheck = ''
|
# Work around "OSError: AF_UNIX path too long"
|
||||||
|
# https://github.com/MagicStack/uvloop/issues/463
|
||||||
|
export TMPDIR="/tmp"
|
||||||
|
'' + ''
|
||||||
|
# force using installed/compiled uvloop vs source by moving tests to temp dir
|
||||||
export TEST_DIR=$(mktemp -d)
|
export TEST_DIR=$(mktemp -d)
|
||||||
cp -r tests $TEST_DIR
|
cp -r tests $TEST_DIR
|
||||||
pushd $TEST_DIR
|
pushd $TEST_DIR
|
||||||
|
|
Loading…
Reference in a new issue