Skip to content

Commit

Permalink
tests: fix test case to not import distutils on python 3.12
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eli-schwartz committed Oct 3, 2023
1 parent 2d6c109 commit ecf2613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test cases/python/5 modules kwarg/meson.build
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit ecf2613

Please sign in to comment.