)]}'
{"nova/tests/unit/compute/test_compute_mgr.py":[{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"f96eb87ff3874fa9cd52683fa6ecb568287b942c","unresolved":true,"context_lines":[{"line_number":9981,"context_line":"                              self.compute.prep_resize,"},{"line_number":9982,"context_line":"                              self.context, mock.sentinel.image,"},{"line_number":9983,"context_line":"                              instance, flavor,"},{"line_number":9984,"context_line":"                              mock.sentinel.request_spec,"},{"line_number":9985,"context_line":"                              {}, \u0027node\u0027, False,"},{"line_number":9986,"context_line":"                              migration, [])"},{"line_number":9987,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bd0537ff_d70dd9b7","line":9984,"updated":"2021-07-09 02:29:04.000000000","message":"I found while reviewing the Stein version of this backport [1] that this mock.sentinel object will actually cause a TypeError to be raised from _get_scheduler_hints before _prep_resize is even called. And the reason this test still passes is because _reschedule_resize_or_reraise is being mocked to raise TestingException as well, and that\u0027s the TestingException that\u0027s actually asserted here, since _prep_resize is never reached.\n\n[1] https://review.opendev.org/c/openstack/nova/+/800114/1/nova/tests/unit/compute/test_compute_mgr.py#9323","commit_id":"a22d1b04de9e6ebc33b5ab9871b86f8e4022e7a9"}]}
