forked from AuroraMiddleware/gtk
tests: Maybe skip introspection tests
If we don't find the python gi module, skip the introspection test.
This commit is contained in:
parent
5844ecf381
commit
db5543e83b
@ -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