aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-10-02 23:51:57 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-10-02 23:53:39 -0400
commitecf261330c498783760cbde00b613b7469f8d3c0 (patch)
tree2abf75062493444b833f22ecf0e0ff5148a1082d /test cases
parent2d6c10908b3771216e7ce086af1ee4dc77e698c2 (diff)
downloadmeson-ecf261330c498783760cbde00b613b7469f8d3c0.zip
meson-ecf261330c498783760cbde00b613b7469f8d3c0.tar.gz
meson-ecf261330c498783760cbde00b613b7469f8d3c0.tar.bz2
tests: fix test case to not import distutils on python 3.12
Testing the correctness of the `modules: ` kwarg can be done with other guaranteed stdlib modules that are even more guaranteed since they didn't get deprecated for removal.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/python/5 modules kwarg/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/python/5 modules kwarg/meson.build b/test cases/python/5 modules kwarg/meson.build
index 9751ada..41a9a4f 100644
--- a/test cases/python/5 modules kwarg/meson.build
+++ b/test cases/python/5 modules kwarg/meson.build
@@ -1,7 +1,7 @@
project('python kwarg')
py = import('python')
-prog_python = py.find_installation('python3', modules : ['distutils'])
+prog_python = py.find_installation('python3', modules : ['os', 'sys', 're'])
assert(prog_python.found() == true, 'python not found when should be')
prog_python = py.find_installation('python3', modules : ['thisbetternotexistmod'], required : false)
assert(prog_python.found() == false, 'python not found but reported as found')