Fix unit testcase failure

Bug #1535033 reported by vikram.choudhary
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-onos
Fix Released
Critical
vikram.choudhary

Bug Description

viksdeep@viksdeep:/home/openstack/projects/networking-onos$ tox -e py27
py27 develop-inst-nodeps: /home/openstack/projects/networking-onos
py27 installed: aioeventlet==0.4,alembic==0.8.4,amqp==1.4.9,anyjson==0.3.3,appdirs==1.4.0,Babel==2.2.0,beautifulsoup4==4.4.1,cachetools==1.1.5,cliff==1.15.0,cmd2==0.6.8,contextlib2==0.5.1,coverage==4.0.3,debtcollector==1.2.0,decorator==4.0.6,docutils==0.12,enum34==1.1.2,eventlet==0.17.4,extras==0.0.3,fasteners==0.14.1,fixtures==1.4.0,flake8==2.2.4,funcsigs==0.4,futures==3.0.3,futurist==0.9.0,greenlet==0.4.9,hacking==0.10.2,httplib2==0.9.2,iso8601==0.1.11,Jinja2==2.8,keystoneauth1==2.2.0,keystonemiddleware==4.1.0,kombu==3.0.33,linecache2==1.0.0,logutils==0.3.3,Mako==1.0.3,MarkupSafe==0.23,mccabe==0.2.1,mock==1.3.0,monotonic==0.5,mox3==0.13.0,msgpack-python==0.4.6,netaddr==0.7.18,netifaces==0.10.4,-e git+https://github.com/openstack/networking-onos.git@d6b982c37c3809157b9265cf6000cf6735007b80#egg=networking_onos-master,-e git://git.openstack.org/openstack/neutron.git@6609d57274b4f7645f22d10d509637a42edf3a7f#egg=neutron-master,ordereddict==1.1,os-client-config==1.14.0,oslo.concurrency==3.3.0,oslo.config==3.2.1,oslo.context==1.0.1,oslo.db==4.3.0,oslo.i18n==3.2.0,oslo.log==2.3.0,oslo.messaging==4.0.0,oslo.middleware==3.5.0,oslo.policy==1.3.0,oslo.reports==1.3.0,oslo.rootwrap==3.1.0,oslo.serialization==2.2.0,oslo.service==1.3.0,oslo.utils==3.4.0,oslo.versionedobjects==1.3.0,oslosphinx==4.2.0,oslotest==2.0.0,ovs==2.4.0,Paste==2.0.2,PasteDeploy==1.5.2,pbr==1.8.1,pecan==1.0.3,pep8==1.5.7,prettytable==0.7.2,psutil==1.2.1,pycadf==2.0.1,pyflakes==0.8.1,Pygments==2.0.2,pyinotify==0.9.6,pyparsing==2.0.7,python-dateutil==2.4.2,python-editor==0.5,python-keystoneclient==2.1.1,python-mimeparse==0.1.4,python-neutronclient==4.0.0,python-novaclient==3.2.0,python-subunit==1.2.0,pytz==2015.7,PyYAML==3.11,repoze.lru==0.6,requests==2.9.1,requestsexceptions==1.1.2,retrying==1.3.3,Routes==2.2,ryu==3.29.1,simplejson==3.8.1,singledispatch==3.4.0.3,six==1.10.0,Sphinx==1.2.3,SQLAlchemy==1.0.11,sqlalchemy-migrate==0.10.0,sqlparse==0.1.18,stevedore==1.10.0,Tempita==0.5.2,testrepository==0.0.20,testscenarios==0.5.0,testtools==1.8.1,traceback2==1.4.0,trollius==2.0,unicodecsv==0.14.1,unittest2==1.1.0,waitress==0.8.10,WebOb==1.5.1,WebTest==2.0.20,wheel==0.24.0,wrapt==1.10.6
py27 runtests: PYTHONHASHSEED='2547443801'
py27 runtests: commands[0] | bash tools/pretty_tox.sh
running testr
Non-zero exit code (2) from test listing.
error: testr failed (3)
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
OS_LOG_CAPTURE=1 \
${PYTHON:-python} -m subunit.run discover -t ./ . --list
--- import errors ---
Failed to import test module: networking_onos.tests.unit.plugins.l3.test_driver
Traceback (most recent call last):
  File "/home/openstack/projects/networking-onos/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/openstack/projects/networking-onos/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "networking_onos/tests/unit/plugins/l3/test_driver.py", line 77, in <module>
    onos_driver.ONOSL3Plugin):
TypeError: Error when calling the metaclass bases
    Cannot create a consistent method resolution
order (MRO) for bases BaseTestCase, ExtensionTestCase, ONOSL3Plugin
The test run didn't actually run any tests
ERROR: InvocationError: '/bin/bash tools/pretty_tox.sh '
___________________________________________________________________ summary ____________________________________________________________________
ERROR: py27: commands failed
viksdeep@viksdeep:/home/openstack/projects/networking-onos$ cd /home/openstack/projects/networking-onos/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-onos (master)

Fix proposed to branch: master
Review: https://review.openstack.org/268721

Changed in networking-onos:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-onos (master)

Reviewed: https://review.openstack.org/268721
Committed: https://git.openstack.org/cgit/openstack/networking-onos/commit/?id=ffb0b40a2211982216e91cfcbdf0b04b27b68e90
Submitter: Jenkins
Branch: master

commit ffb0b40a2211982216e91cfcbdf0b04b27b68e90
Author: vikram.choudhary <email address hidden>
Date: Sun Jan 17 10:39:53 2016 +0530

    Fix unit testcase failures.

    Removed un-necessary class inheritance.

    Change-Id: Id90c70ebfe724f5e3e68000b6ce9858b65eedfa9
    Closes-bug: #1535033

Changed in networking-onos:
status: In Progress → Fix Released
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.