Skip to content

Commit 32faa39

Browse files
authored
Fix check if stderr is empty (#613)
1 parent 8783f9b commit 32faa39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def start_metric_providers(self, allow_container=True, allow_other=True):
961961

962962
stderr_read = metric_provider.get_stderr()
963963
print(f"Stderr check on {metric_provider.__class__.__name__}")
964-
if stderr_read is not None and str(stderr_read) is not '':
964+
if stderr_read is not None and str(stderr_read):
965965
raise RuntimeError(f"Stderr on {metric_provider.__class__.__name__} was NOT empty: {stderr_read}")
966966

967967

@@ -1095,7 +1095,7 @@ def stop_metric_providers(self):
10951095
continue
10961096

10971097
stderr_read = metric_provider.get_stderr()
1098-
if stderr_read is not None and str(stderr_read) is not '':
1098+
if stderr_read is not None and str(stderr_read):
10991099
errors.append(f"Stderr on {metric_provider.__class__.__name__} was NOT empty: {stderr_read}")
11001100

11011101
metric_provider.stop_profiling()

0 commit comments

Comments
 (0)