Skip to content

Commit

Permalink
#236: - made imports testing more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinwrobel1986 authored and Marcin Wróbel committed Nov 10, 2022
1 parent f7ed01e commit 62a4814
Showing 1 changed file with 54 additions and 10 deletions.
64 changes: 54 additions & 10 deletions scripts/test_imports.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@
import vtk
import numpy
import yaml
import brotli
import schema
import sklearn
import colorama

import mpi4py
from pyzoltan.core import zoltan
try:
import vtk
except ImportError as e:
print(f'VTK was not imported: {e}')
print('==> Package VTK imported successfully!')

try:
import numpy
except ImportError as e:
print(f'numpy was not imported: {e}')
print('==> Package numpy imported successfully!')

try:
import yaml
except ImportError as e:
print(f'yaml was not imported: {e}')
print('==> Package yaml imported successfully!')

try:
import brotli
except ImportError as e:
print(f'brotli was not imported: {e}')
print('==> Package brotli imported successfully!')

try:
import schema
except ImportError as e:
print(f'schema was not imported: {e}')
print('==> Package schema imported successfully!')

try:
import sklearn
except ImportError as e:
print(f'sklearn was not imported: {e}')
print('==> Package sklearn imported successfully!')

try:
import colorama
except ImportError as e:
print(f'colorama was not imported: {e}')
print('==> Package colorama imported successfully!')

try:
import mpi4py
except ImportError as e:
print(f'mpi4py was not imported: {e}')
print('==> Package mpi4py imported successfully!')

try:
from pyzoltan.core import zoltan
except ImportError as e:
print(f'pyzoltan was not imported: {e}')
print('==> Package pyzoltan imported successfully!')

0 comments on commit 62a4814

Please sign in to comment.