← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1340881] [NEW] importing neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py causes program to exit prematurely

 

Public bug reported:

https://review.openstack.org/#/c/103675/5/neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py

https://review.openstack.org/#/c/103675/5


neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py


try:
    import httmock
except (NameError, ImportError):
    exit()
import requests


since httmock is not in requirements, importing this module causes whatever imports it to suddenly exit with a return code of 0.

This  has disabled flake8, and is possibly breaking unit tests as well.

** Affects: neutron
     Importance: Undecided
     Assignee: Joe Gordon (jogo)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1340881

Title:
  importing
  neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py
  causes program to exit prematurely

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  https://review.openstack.org/#/c/103675/5/neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py

  https://review.openstack.org/#/c/103675/5


  neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py

  
  try:
      import httmock
  except (NameError, ImportError):
      exit()
  import requests

  
  since httmock is not in requirements, importing this module causes whatever imports it to suddenly exit with a return code of 0.

  This  has disabled flake8, and is possibly breaking unit tests as
  well.

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


Follow ups

References