mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
tests: Maybe skip introspection tests
If we don't find the python gi module, skip the introspection test.
This commit is contained in:
parent
d758754f20
commit
596f59f471
@ -14,7 +14,10 @@ if hasattr(os, 'add_dll_directory'):
|
||||
if path != '' and os.path.isdir(path):
|
||||
os.add_dll_directory(path)
|
||||
|
||||
import gi
|
||||
try:
|
||||
import gi
|
||||
except ImportError:
|
||||
sys.exit(77) # skip this test, gi module is not available
|
||||
|
||||
gi.require_version('Gtk', '4.0')
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
py = import('python').find_installation('python3', modules: ['gi'])
|
||||
|
||||
env = environment()
|
||||
env.prepend('GI_TYPELIB_PATH',
|
||||
project_build_root / 'gtk',
|
||||
|
Loading…
Reference in New Issue
Block a user