def _register_with_pkg_resources(cls):
        """
        Ensure package resources can be loaded from this loader. May be called
        multiple times, as the operation is idempotent.
        """
        try:
            import pkg_resources
            # access an attribute in case a deferred importer is present
            pkg_resources.__name__
        except ImportError:
            return

        # Since pytest tests are always located in the file system, the
        #  DefaultProvider is appropriate.
        pkg_resources.register_loader_type(cls, pkg_resources.DefaultProvider)
def _register_with_pkg_resources ( cls ) : try : import pkg_resources pkg_resources . __name__ except ImportError : return pkg_resources . register_loader_type ( cls , pkg_resources . DefaultProvider )
Ensure package resources can be loaded from this loader. May be called
        multiple times, as the operation is idempotent.