summaryrefslogtreecommitdiff
path: root/docs/markdown/Syntax.md
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-10-17 20:47:19 +0100
committerEli Schwartz <eschwartz93@gmail.com>2025-10-31 01:13:28 -0400
commit373cc823b009c5a0ceb06c462d656ec510a2505b (patch)
treebdbcf9f9214e10fa1d64734248402a8b291ebf93 /docs/markdown/Syntax.md
parent6b4f2c7964115fa5d12f8f2234715a2ee67ea8dd (diff)
downloadmeson-373cc823b009c5a0ceb06c462d656ec510a2505b.tar.gz
compilers: handle older Python behaviour for TemporaryDirectory
In an Ubuntu Bionic container with Python 3.7.5: ``` $ python3 -c 'import tempfile; print(tempfile.mkdtemp(dir=""))' tmpycdjfo6m $ python3 -c 'import tempfile; print(tempfile.mkdtemp(dir=None))' /tmp/tmpy6dlpv0r ``` Pass dir as None to get the behaviour we need - which is how newer Pythons act, as otherwise we aren't running in the cwd for the compile test that we expect. This shows up as a failure in _test_all_naming when _find_library_real is modified to use links().
Diffstat (limited to 'docs/markdown/Syntax.md')
0 files changed, 0 insertions, 0 deletions