Failing unit test in Jenkins (test_excepthook_logs_exception)

Bug #1048628 reported by Stuart McLaren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
New
Undecided
Unassigned

Bug Description

With this code submission:

https://review.openstack.org/#/c/12692/

The following unit test is failing in Jenkins:

10:39:24 ======================================================================
10:39:24 FAIL: test_excepthook_logs_exception (tests.unit.test_log.ExceptionLoggingTestCase)
10:39:24 ----------------------------------------------------------------------
10:39:24 Traceback (most recent call last):
10:39:24 File "/home/jenkins/workspace/gate-openstack-common-python27/tests/unit/test_log.py", line 233, in
test_excepthook_logs_exception
10:39:24 msg="Exception is not logged")
10:39:24 AssertionError: Exception is not logged
10:39:24 'Exception is not logged' = self._formatMessage('Exception is not logged', "%s is not true" % safe_repr(False))
10:39:24 >> raise self.failureException('Exception is not logged')

Reproducing on my desktop, and adding some debug gives:

======================================================================
FAIL: test_excepthook_logs_exception (tests.unit.test_log.ExceptionLoggingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sam/git/openstack-common/openstack-common/tests/unit/test_log.py", line 234, in test_excepthook_logs_exception
    msg="Exception is not logged")
AssertionError: Exception is not logged
    'Exception is not logged' = self._formatMessage('Exception is not logged', "%s is not true" % safe_repr(False))
> > raise self.failureException('Exception is not logged')

-------------------- >> begin captured stdout << ---------------------
XXX err is: Traceback (most recent call last): <<<
  File "<stdin>", line 3, in <module> <<<
ImportError: No module named common <<<

If, as suggested by Mark McLoughlin, I remove the openstack nose plugin on my desktop the
test runs ok.

Mark McLoughlin (markmc)
affects: openstack-common → oslo
Revision history for this message
Mark McLoughlin (markmc) wrote :

I'm pretty sure this will be fixed by https://review.openstack.org/16752

i.e. we won't notice the openstack.nose_plugin anymore

If you try this out, make sure to blow away your .tox before testing

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.