From ac02c107bedcc6d704c3591a2a212d9e65ede36c Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Thu, 10 Nov 2022 00:07:52 +0000 Subject: keep --- test/python/do_it.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 test/python/do_it.sh (limited to 'test/python/do_it.sh') diff --git a/test/python/do_it.sh b/test/python/do_it.sh new file mode 100755 index 0000000..ec72b52 --- /dev/null +++ b/test/python/do_it.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Always run these checks as the non-root user +user="$(whoami)" + +which python3 + +check "has python" python --version + +result=$(python3 -c 'import select; print(select)') +echo "result: $result" + +check "select is built-in" bash -c "python3 -c 'import select; print(select)' | grep 'built-in'" + +reportResults -- cgit v1.2.3