(env_var)
| 66 | """ |
| 67 | |
| 68 | def run_with_env_var(env_var): |
| 69 | env = os.environ.copy() |
| 70 | env['ARROW_IO_THREADS'] = env_var |
| 71 | res = subprocess.run([sys.executable, "-c", code], env=env, |
| 72 | capture_output=True) |
| 73 | res.check_returncode() |
| 74 | return res.stdout.decode(), res.stderr.decode() |
| 75 | |
| 76 | out, err = run_with_env_var('17') |
| 77 | assert out.strip() == '17' |
no test coverage detected