That exception is covered over in geos/__init__.py, same as gdal/__init__.py.

If the test import imported from there instead of `.` instead of `.libgeos`, an `ImportError` would be raised.

Same might need to be checked in case there are `.libgdal` imports.