File: py3

package info (click to toggle)
hy 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,632 kB
  • sloc: python: 7,299; makefile: 38; sh: 27
file content (10 lines) | stat: -rwxr-xr-x 673 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/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