File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,8 @@ def test_one(self, testObj):
61
61
if "output_cmp" in testObj :
62
62
outputFn = testObj ['output_cmp' ]
63
63
outputType = os .path .splitext (outputFn )[1 ][1 :] # output type from file extension (determines how to compare)
64
- try :
65
- with open (self .testcase_dir / outputFn , encoding = "utf8" ) as f :
66
- outputData = f .read ()
67
- except Exception :
68
- logging .error ("Output file " + outputFn + " cannot be opened" )
69
- raise
64
+ with open (self .testcase_dir / outputFn , encoding = "utf8" ) as f :
65
+ outputData = f .read ()
70
66
if not outputData :
71
67
logging .error ("Output data missing for " + outputFn )
72
68
raise Exception
@@ -75,11 +71,7 @@ def test_one(self, testObj):
75
71
raise Exception
76
72
77
73
# Run the test
78
- try :
79
- res = subprocess .run (execrun , capture_output = True , text = True , input = inputData )
80
- except OSError :
81
- logging .error ("OSError, Failed to execute " + str (execrun ))
82
- raise
74
+ res = subprocess .run (execrun , capture_output = True , text = True , input = inputData )
83
75
84
76
if outputData :
85
77
data_mismatch , formatting_mismatch = False , False
You can’t perform that action at this time.
0 commit comments