diff options
Diffstat (limited to 'tests/glib2/run_tests.py')
-rw-r--r-- | tests/glib2/run_tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/glib2/run_tests.py b/tests/glib2/run_tests.py index 37c91d5..ce45df9 100644 --- a/tests/glib2/run_tests.py +++ b/tests/glib2/run_tests.py @@ -31,6 +31,12 @@ def testbase(): def setup_module(testbase: GLIB2Base): print("setup function start") +def precheck(): + instance = GLIB2Base() + return instance.precheck() +skip_msg = "The current environment does not match the test requirements." +pytestmark = pytest.mark.skipif(precheck() == False, reason = skip_msg) + @pytest.mark.oss_default def test_timeloop_closure(testbase: GLIB2Base): name = "glib/timeloop-closure.test" |