test_init.py 422 B

1234567891011121314
  1. # Basic test case to test functioning of module's top-level
  2. try:
  3. from joblib import * # noqa
  4. _top_import_error = None
  5. except Exception as ex: # pragma: no cover
  6. _top_import_error = ex
  7. def test_import_joblib():
  8. # Test either above import has failed for some reason
  9. # "import *" only allowed at module level, hence we
  10. # rely on setting up the variable above
  11. assert _top_import_error is None