Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michael Migliore
VTK
Commits
364faf7e
Commit
364faf7e
authored
Apr 20, 2017
by
Ben Boeckel
⛰
Browse files
tests: indicate that tests were skipped if requirements are not met
parent
cb8d2175
Changes
12
Hide whitespace changes
Inline
Side-by-side
Accelerators/Vtkm/Testing/Python/TestVTKMAverageToCells.py
View file @
364faf7e
...
...
@@ -5,7 +5,8 @@ try:
except
ImportError
:
print
(
"Numpy (http://numpy.scipy.org) not found."
)
print
(
"This test requires numpy!"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
vtk
from
vtk.numpy_interface
import
dataset_adapter
as
dsa
...
...
Accelerators/Vtkm/Testing/Python/TestVTKMAverageToPoints.py
View file @
364faf7e
...
...
@@ -5,7 +5,8 @@ try:
except
ImportError
:
print
(
"Numpy (http://numpy.scipy.org) not found."
)
print
(
"This test requires numpy!"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
vtk
from
vtk.numpy_interface
import
dataset_adapter
as
dsa
...
...
Common/Core/Testing/Python/TestNumpyInterface.py
View file @
364faf7e
...
...
@@ -5,7 +5,8 @@ try:
except
ImportError
:
print
(
"Numpy (http://numpy.scipy.org) not found."
)
print
(
"This test requires numpy!"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
vtk
import
vtk.numpy_interface.dataset_adapter
as
dsa
...
...
Common/Core/Testing/Python/TestNumpySupport.py
View file @
364faf7e
...
...
@@ -16,7 +16,8 @@ try:
except
ImportError
:
print
(
"Numpy (http://numpy.scipy.org) not found."
)
print
(
"This test requires numpy!"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
from
vtk.util.numpy_support
import
numpy_to_vtk
,
vtk_to_numpy
import
vtk.numpy_interface.dataset_adapter
as
dsa
...
...
Common/Core/Testing/Python/TestNumpyWeakReference.py
View file @
364faf7e
...
...
@@ -5,7 +5,8 @@ try:
except
ImportError
:
print
(
"Numpy (http://numpy.scipy.org) not found."
)
print
(
"This test requires numpy!"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
vtk
import
vtk.numpy_interface.dataset_adapter
as
dsa
...
...
Common/Core/Testing/Python/TestWeakref.py
View file @
364faf7e
...
...
@@ -18,7 +18,8 @@ try:
except
ImportError
:
print
(
"No weakref in this version of Python. Time to upgrade?"
)
print
(
"Python version:"
,
sys
.
version
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
class
TestWeakref
(
Testing
.
vtkTest
):
...
...
Common/DataModel/Testing/Python/TestNumericArrayImageData.py
View file @
364faf7e
...
...
@@ -17,7 +17,8 @@ try:
import
numpy.core.numeric
as
numeric
except
ImportError
:
print
(
"WARNING: This test requires Numeric Python: http://numpy.sf.net"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
os
import
glob
...
...
Filters/Core/Testing/Python/TestContourCases.py
View file @
364faf7e
...
...
@@ -7,7 +7,8 @@ try:
import
numpy
as
np
except
ImportError
:
print
(
"WARNING: This test requires Numeric Python: http://numpy.sf.net"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
def
GenerateCell
(
cellType
,
points
):
cell
=
vtk
.
vtkUnstructuredGrid
()
...
...
Filters/General/Testing/Python/GreenLagrangeStrain.py
View file @
364faf7e
...
...
@@ -9,7 +9,8 @@ try:
import
numpy
except
ImportError
:
print
(
"WARNING: This test requires NumPy: http://http://www.numpy.org/"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
vtk
...
...
Filters/Points/Testing/Python/TestSPHInterpolatorWithCutoff.py
View file @
364faf7e
...
...
@@ -4,7 +4,8 @@ try:
except
ImportError
:
print
(
"Numpy (http://numpy.scipy.org) not found."
)
print
(
"This test requires numpy!"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
vtk
import
vtk.test.Testing
...
...
Parallel/MPI4Py/Testing/Python/TestParallelNumpy.py
View file @
364faf7e
...
...
@@ -9,7 +9,8 @@ try:
except
ImportError
:
print
(
"Numpy (http://numpy.scipy.org) not found."
,
end
=
' '
)
print
(
"This test requires numpy!"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
import
vtk
import
vtk.numpy_interface.dataset_adapter
as
dsa
...
...
Rendering/Volume/Testing/Python/volTM3DCompressedCropRegions.py
View file @
364faf7e
...
...
@@ -92,7 +92,8 @@ culler.SetSortingStyleToBackToFront()
valid
=
volumeMapper_0_0
.
IsRenderSupported
(
volumeProperty
,
ren1
)
if
(
valid
==
0
):
print
(
"Required Extensions Not Supported"
)
sys
.
exit
(
0
)
from
vtk.test
import
Testing
Testing
.
skip
()
ren1
.
ResetCamera
()
ren1
.
GetActiveCamera
().
Zoom
(
3.0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment