@@ -80,7 +80,7 @@ def test_virtual_file_fails():
80
80
with clib .Session () as lib , mock (lib , "GMT_Open_VirtualFile" , returns = 1 ):
81
81
with pytest .raises (GMTCLibError ):
82
82
with lib .open_virtual_file (* vfargs ):
83
- print ( "Should not get to this code" )
83
+ pass
84
84
85
85
# Test the status check when closing the virtual file
86
86
# Mock the opening to return 0 (success) so that we don't open a file that
@@ -91,7 +91,6 @@ def test_virtual_file_fails():
91
91
with pytest .raises (GMTCLibError ):
92
92
with lib .open_virtual_file (* vfargs ):
93
93
pass
94
- print ("Shouldn't get to this code either" )
95
94
96
95
97
96
def test_virtual_file_bad_direction ():
@@ -107,7 +106,7 @@ def test_virtual_file_bad_direction():
107
106
)
108
107
with pytest .raises (GMTInvalidInput ):
109
108
with lib .open_virtual_file (* vfargs ):
110
- print ( "This should have failed" )
109
+ pass
111
110
112
111
113
112
@pytest .mark .parametrize (
@@ -280,7 +279,7 @@ def test_virtualfile_from_vectors_diff_size():
280
279
with clib .Session () as lib :
281
280
with pytest .raises (GMTInvalidInput ):
282
281
with lib .virtualfile_from_vectors (x , y ):
283
- print ( "This should have failed" )
282
+ pass
284
283
285
284
286
285
def test_virtualfile_from_matrix (dtypes ):
0 commit comments