File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,16 @@ def test_html_output_file(self):
29
29
html_content = f .read ()
30
30
self .assertIn ('***CASE REPORT***' , html_content )
31
31
# TODO expand test to assert more about output HTML
32
- except TypeError as te :
33
- if os .name == 'nt' and 'TOXPYTHON' in os .environ :
34
- # https://github.com/NREL/GEOPHIRES-X/issues/365
32
+ except RuntimeError as e :
33
+ # https://github.com/NREL/GEOPHIRES-X/issues/365
34
+ has_expected_error_msg = 'cannot unpack non-iterable NoneType object' in str (e )
35
+ if has_expected_error_msg and os .name == 'nt' and 'TOXPYTHON' in os .environ :
35
36
_log .warning (
36
- f'Ignoring TypeError while testing HTML output file '
37
- f'since we appear to be running on Windows in GitHub Actions ({ te !s} )'
37
+ f'Ignoring error while testing HTML output file '
38
+ f'since we appear to be running on Windows in GitHub Actions ({ e !s} )'
38
39
)
40
+ else :
41
+ raise e
39
42
40
43
def test_relative_output_file_path (self ):
41
44
input_file = GeophiresInputParameters ({'HTML Output File' : 'foo.html' }).as_file_path ()
You can’t perform that action at this time.
0 commit comments