Skip to content

Commit

Permalink
Silence deprecation warning in tvtk
Browse files Browse the repository at this point in the history
tvtk warns "Converting `np.character` to a dtype is deprecated."
We'll hopefully be getting rid of dependency on tvtk altogether
  • Loading branch information
guyer committed Apr 19, 2021
1 parent c475ce0 commit a007c16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fipy/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def runTests(self):
message="`np\.int` is a deprecated alias for the builtin `int`.*",
module="skfmm\.pfmm")

# Don't raise errors in tvtk.array_handler
# due to deprecation of dtype conversion of np.character
warnings.filterwarnings(action="default", category=DeprecationWarning,
message="Converting `np\.character` to a dtype is deprecated..*",
module="tvtk\.array_handler")

super(DeprecationErroringTestProgram, self).runTests()

class test(_test):
Expand Down

0 comments on commit a007c16

Please sign in to comment.