Commit ea258fb7 authored by Robin Obůrka's avatar Robin Obůrka

tests: Eliminate warnings after update

It doesn't like raise anymore, but yield is OK.
parent 857184da
...@@ -8,7 +8,7 @@ def test_context_data_passed(in_out_args_mock, recv_multipart_mock, send_multipa ...@@ -8,7 +8,7 @@ def test_context_data_passed(in_out_args_mock, recv_multipart_mock, send_multipa
def side_effect(): def side_effect():
yield good_msg yield good_msg
yield good_msg yield good_msg
raise StopIteration() yield StopIteration()
recv_multipart_mock.side_effect = side_effect() recv_multipart_mock.side_effect = side_effect()
...@@ -43,7 +43,7 @@ def test_regulraly_processed(in_out_args_mock, recv_multipart_mock, send_multipa ...@@ -43,7 +43,7 @@ def test_regulraly_processed(in_out_args_mock, recv_multipart_mock, send_multipa
def side_effect(): def side_effect():
yield good_msg yield good_msg
yield good_msg yield good_msg
raise StopIteration() yield StopIteration()
recv_multipart_mock.side_effect = side_effect() recv_multipart_mock.side_effect = side_effect()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment