The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
12345678 use Test::More;use Inline Python => <<PYTHON;import osos.environ["TEST_VARIABLE"] = "BOB"PYTHONok(1, 'survived Python setting an env variable');done_testing;# might explode during cleanup but the test harness will catch that
use
Test::More;
Inline
Python
=>
<<PYTHON;
import os
os.environ["TEST_VARIABLE"] = "BOB"
PYTHON
ok(1,
'survived Python setting an env variable'
);
done_testing;
# might explode during cleanup but the test harness will catch that