#!/bin/bash

# We must filter harmless output from stderr, or adt-run will consider
# the test to have failed

# This technique from: http://tldp.org/LDP/abs/html/io-redirection.html

okay="zip_safe flag not set; analyzing archive contents..."

exec 3>&1
python3 setup.py test 2>&1 >&3 3>&- | grep -v "$okay" 3>&-
exec 3>&-
