Skip to content

Commit bd97cf4

Browse files
removed unnecessary if statement
1 parent 9e3ef4e commit bd97cf4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

climada/engine/test/test_cost_benefit.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,14 +1140,13 @@ def test_measure_exposure_no_centroids(self):
11401140
imp_time_depen=None,
11411141
save_imp=True,
11421142
)
1143-
if logs.output:
1144-
for log in logs.output:
1145-
self.assertNotIn(
1146-
"No assigned hazard centroids in exposure object after",
1147-
log,
1148-
"Centroids are already assinged in Measure Exposure object"
1149-
"and should not be reassigned.",
1150-
)
1143+
for log in logs.output:
1144+
self.assertNotIn(
1145+
"No assigned hazard centroids in exposure object after",
1146+
log,
1147+
"Centroids are already assinged in Measure Exposure object"
1148+
"and should not be reassigned.",
1149+
)
11511150
except AssertionError as e:
11521151
if "no logs" in str(e).lower():
11531152
pass

0 commit comments

Comments
 (0)