← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1754409] [NEW] invalid raise construct in test_build_resources_instance_not_found_before_yield

 

Public bug reported:

The test code in [1] uses `raise` statement without any parameter. It is
not a valid python construct if used outside of an `expect` block.

The test does not fail on this as this codepath never executed.

[1]
https://github.com/openstack/nova/blob/93a985d33662723872ec5eedd1a173dc397f96fa/nova/tests/unit/compute/test_compute_mgr.py#L5686

** Affects: nova
     Importance: Undecided
     Assignee: Balazs Gibizer (balazs-gibizer)
         Status: In Progress


** Tags: testing

** Tags added: testing

** Changed in: nova
     Assignee: (unassigned) => Balazs Gibizer (balazs-gibizer)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1754409

Title:
  invalid raise construct in
  test_build_resources_instance_not_found_before_yield

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  The test code in [1] uses `raise` statement without any parameter. It
  is not a valid python construct if used outside of an `expect` block.

  The test does not fail on this as this codepath never executed.

  [1]
  https://github.com/openstack/nova/blob/93a985d33662723872ec5eedd1a173dc397f96fa/nova/tests/unit/compute/test_compute_mgr.py#L5686

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1754409/+subscriptions


Follow ups