Skip to content

Commit

Permalink
Split exception test in two and added pyling comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfhm committed Aug 23, 2023
1 parent 3ef3571 commit 26642f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,15 @@ def graphviz_present():
Test if graphviz is present and works
"""
try:
import graphviz as gviz
callgraph = gviz.Graph()
callgraph.pipe()
import graphviz as gviz # pylint: disable=import-outside-toplevel
except ImportError:
return False

try:
gviz.Graph().pipe()
except gviz.ExecutableNotFound:
return False

return True


Expand Down

0 comments on commit 26642f4

Please sign in to comment.