#!/usr/bin/env bash
set -Eeuo pipefail
# many tests assume hyc files are writeable (hence the need for "rw-build-tree")
# "test_bin_hy_circular_macro_require" invokes a Hy file which imports "tests.xxx" and fails without adding PWD to PYTHONPATH (even though several other tests do similar import paths and work fine)
export PYTHONPATH="$PWD${PYTHONPATH:+:$PYTHONPATH}"
# (perhaps somehow related to "This is almost equivalent to invoking the command line script pytest [...] directly, except that calling via python will also add the current directory to sys.path." from pytest's documentation? it's reproducible even running "pytest" so perhaps not)
python3 -m pytest
|