@importorskip('gi.repository')
@parametrize('repository_name', gi2_repository_names_skipped_if_unimportable, ids=gi2_repository_names)
def test_gi2_repository(pyi_builder, repository_name):
 pyi_builder.test_source("\n        import gi\n        gi.require_version('{repository_name}', '2.0')\n        from gi.repository import {repository_name}\n        print({repository_name})\n        ".format(repository_name=repository_name))

@ importorskip ( 'gi.repository' ) @ parametrize ( 'repository_name' , gi2_repository_names_skipped_if_unimportable , ids = gi2_repository_names ) def test_gi2_repository ( pyi_builder , repository_name ) : pyi_builder . test_source ( "\n        import gi\n        gi.require_version('{repository_name}', '2.0')\n        from gi.repository import {repository_name}\n        print({repository_name})\n        " . format ( repository_name = repository_name ) )
test the importability of the gi .