Needs oslosphinx for tests

Bug #1728865 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.policy
Expired
Undecided
Unassigned

Bug Description

Building the 1.25.1 version, I found out that unit tests are using oslosphinx, even though it's not in the (test-)requirements.txt:

======================================================================
FAIL: unittest2.loader._FailedTest.oslo_policy.tests.test_sphinxext
unittest2.loader._FailedTest.oslo_policy.tests.test_sphinxext
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: oslo_policy.tests.test_sphinxext
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "/home/zigo/sources/openstack/pike/exp/python-oslo.policy/build-area/python-oslo.policy-1.25.1/oslo_policy/tests/test_sphinxext.py", line 20, in <module>
    from oslo_policy import sphinxext
  File "/home/zigo/sources/openstack/pike/exp/python-oslo.policy/build-area/python-oslo.policy-1.25.1/oslo_policy/sphinxext.py", line 24, in <module>
    from sphinx.util.nodes import nested_parse_with_titles
ModuleNotFoundError: No module named 'sphinx'

Revision history for this message
Ben Nemec (bnemec) wrote :

It failed to import sphinx, not oslosphinx. It looks like sphinx has been in the test-requirements file since this project was first graduated, so I think there must be something else wrong here. Is it possible there was a missing requirement in the package build?

Changed in oslo.policy:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.policy because there has been no activity for 60 days.]

Changed in oslo.policy:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.