Skip to content

Commit fdb50d8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c6f2d4b commit fdb50d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

knapsack/tests/test_greedy_knapsack.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ def test_unequal_list_length(self):
6868
# profit = [10, 20, 30, 40, 50]
6969
# weight = [2, 4, 6, 8, 10, 12]
7070
# max_weight = 100
71-
pytest.raises(IndexError, match=r"The length of profit and weight must be same.")
71+
pytest.raises(
72+
IndexError, match=r"The length of profit and weight must be same."
73+
)
7274

7375

7476
if __name__ == "__main__":

0 commit comments

Comments
 (0)