def test_import_submodule_global_unshadowed(pyi_builder):
 pyi_builder.test_source('\n        # Assert that this submodule is unshadowed by this global variable.\n        import sys\n        from pyi_testmod_submodule_global_unshadowed import submodule\n        assert type(submodule) == type(sys)\n        ')

def test_import_submodule_global_unshadowed ( pyi_builder ) : pyi_builder . test_source ( '\n        # Assert that this submodule is unshadowed by this global variable.\n        import sys\n        from pyi_testmod_submodule_global_unshadowed import submodule\n        assert type(submodule) == type(sys)\n        ' )
functional test validating issue #1919 .