summaryrefslogtreecommitdiff
path: root/src/python/test/test_persistence_graphical_tools.py
diff options
context:
space:
mode:
authorVincent Rouvreau <vincent.rouvreau@inria.fr>2022-05-16 17:14:29 +0200
committerVincent Rouvreau <vincent.rouvreau@inria.fr>2022-05-16 17:14:29 +0200
commit563295694afda3dfa37cccb63a73a9f22131480e (patch)
treeea4f68c3b508c054208903dd3cb767ccbeebbed0 /src/python/test/test_persistence_graphical_tools.py
parent393216cc99af79526b1bb90ae4da21116884bcbd (diff)
code review: use isinstance(x, T) instead of issubclass(type(x),T)
Diffstat (limited to 'src/python/test/test_persistence_graphical_tools.py')
-rw-r--r--src/python/test/test_persistence_graphical_tools.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python/test/test_persistence_graphical_tools.py b/src/python/test/test_persistence_graphical_tools.py
index 44decdd7..c19836b7 100644
--- a/src/python/test/test_persistence_graphical_tools.py
+++ b/src/python/test/test_persistence_graphical_tools.py
@@ -97,13 +97,13 @@ def test_limit_to_max_intervals():
def _limit_plot_persistence(function):
pplot = function(persistence=[])
- assert issubclass(type(pplot), plt.axes.SubplotBase)
+ assert isinstance(pplot, plt.axes.SubplotBase)
pplot = function(persistence=[], legend=True)
- assert issubclass(type(pplot), plt.axes.SubplotBase)
+ assert isinstance(pplot, plt.axes.SubplotBase)
pplot = function(persistence=[(0, float("inf"))])
- assert issubclass(type(pplot), plt.axes.SubplotBase)
+ assert isinstance(pplot, plt.axes.SubplotBase)
pplot = function(persistence=[(0, float("inf"))], legend=True)
- assert issubclass(type(pplot), plt.axes.SubplotBase)
+ assert isinstance(pplot, plt.axes.SubplotBase)
def test_limit_plot_persistence():