Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

tox -epy34 errors

I am using ubuntu 12.04 for testing master branch of horizon. When i try to run tox -epy34, i get the below error

======================================================================
ERROR: Failure: TypeError (can't use a string pattern on a bytes-like object)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stack/horizon/.tox/py34/lib/python3.4/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/home/stack/horizon/.tox/py34/lib/python3.4/site-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/home/stack/horizon/.tox/py34/lib/python3.4/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/stack/horizon/.tox/py34/lib/python3.4/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/stack/horizon/.tox/py34/lib/python3.4/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/home/stack/horizon/.tox/py34/lib/python3.4/imp.py", line 171, in load_source
    module = methods.load()
  File "<frozen importlib._bootstrap>", line 1220, in load
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/stack/horizon/openstack_dashboard/management/commands/make_web_conf.py", line 116, in <module>
    subprocess.check_output(cmd[0], stderr=subprocess.STDOUT))
TypeError: can't use a string pattern on a bytes-like object

Slowest 5 tests took 25.61 secs:
    10.30    NetworkTopologyTests.test_json_view
    5.25    FloatingIpViewTests.test_disassociate_post
    5.12    RouterActionTests.test_router_create_post_exception_error_case_409
    2.71    AccessAndSecurityNeutronProxyTests.test_index
    2.23    NetworkTopologyTests.test_json_view_router_disabled
----------------------------------------------------------------------
Ran 1574 tests in 143.560s

FAILED (SKIP=11, errors=1)
Destroying test database for alias 'default'...
ERROR: InvocationError: '/home/stack/horizon/.tox/py34/bin/python -u manage.py test --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests openstack_dashboard'
___________________________________________________________________ summary ___________________________________________________________________
ERROR:   py34: commands failed