Files
gtk/testsuite/introspection/api.py
Benjamin Otte 710f5c088e Revert "testsuite: Fix introspection test on Windows"
This change is no longer necessary now that we properly set the right
directory for the needed DLLs.

This reverts commit 3471c22f52.
2024-10-28 07:48:49 +01:00

15 lines
297 B
Python
Executable File

#! /usr/bin/env python3
import sys
try:
import gi
except ImportError:
sys.exit(77) # skip this test, gi module is not available
gi.require_version('Gtk', '4.0')
from gi.repository import Gtk
assert isinstance(Gtk.INVALID_LIST_POSITION, int), 'Gtk.INVALID_LIST_POSITION is not an int'