File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 88def _has_cairosvg ():
99 try :
1010 import cairosvg
11- except (ImportError , ModuleNotFoundError ):
11+ except (ImportError , ModuleNotFoundError , OSError ):
1212 return False
1313 else :
1414 return True
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def uml_large():
3131def _has_cairosvg ():
3232 try :
3333 import cairosvg
34- except (ImportError , ModuleNotFoundError ):
34+ except (ImportError , ModuleNotFoundError , OSError ):
3535 return False
3636 else :
3737 return True
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def uml_helloworld_code(uml_helloworld):
1818def _has_cairosvg ():
1919 try :
2020 import cairosvg
21- except (ImportError , ModuleNotFoundError ):
21+ except (ImportError , ModuleNotFoundError , OSError ):
2222 return False
2323 else :
2424 return True
Original file line number Diff line number Diff line change 1616class TestModelsRemote :
1717 @pytest .fixture ()
1818 def host (self , is_official , plantuml_host ):
19- return OFFICIAL_PLANTUML_HOST if is_official else plantuml_host
19+ host_addr = OFFICIAL_PLANTUML_HOST if is_official else plantuml_host
20+ if not host_addr :
21+ pytest .skip ('No plantuml host assigned' )
22+ return None
23+ else :
24+ return host_addr
2025
2126 @pytest .fixture ()
2227 def plantuml (self , host ):
You can’t perform that action at this time.
0 commit comments