← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1535725] [NEW] tox command doesn't work anymore to run neutron tests

 

Public bug reported:

using tox 2.3.0 with the tox.ini from neutron leads to this kind of
error:

$ tox -e pep8
Traceback (most recent call last):
  File "/usr/local/bin/tox", line 11, in <module>
    sys.exit(cmdline())
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 38, in main
    config = prepare(args)
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 26, in prepare
    config = parseconfig(args)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 229, in parseconfig
    parseini(config, inipath)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 729, in __init__
    self.make_envconfig(name, section, reader._subs, config)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 760, in make_envconfig
    res = meth(env_attr.name, env_attr.default)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 893, in getdict_setenv
    definitions = self._getdict(value, default=default, sep=sep)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 904, in _getdict
    name, rest = line.split('=', 1)
ValueError: need more than 1 value to unpack

The root cause seems to be a bug in tox 2.3.0 : 
https://bitbucket.org/hpk42/tox/issues/181

It works fine with tox 2.3.1.

Other openstack projects report similar errors :

https://bugs.launchpad.net/devstack/+bug/1525352

** Affects: neutron
     Importance: Undecided
     Assignee: Mathieu Rohon (mathieu-rohon)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Mathieu Rohon (mathieu-rohon)

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

Title:
  tox command doesn't work anymore to run neutron tests

Status in neutron:
  New

Bug description:
  using tox 2.3.0 with the tox.ini from neutron leads to this kind of
  error:

  $ tox -e pep8
  Traceback (most recent call last):
    File "/usr/local/bin/tox", line 11, in <module>
      sys.exit(cmdline())
    File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 38, in main
      config = prepare(args)
    File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 26, in prepare
      config = parseconfig(args)
    File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 229, in parseconfig
      parseini(config, inipath)
    File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 729, in __init__
      self.make_envconfig(name, section, reader._subs, config)
    File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 760, in make_envconfig
      res = meth(env_attr.name, env_attr.default)
    File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 893, in getdict_setenv
      definitions = self._getdict(value, default=default, sep=sep)
    File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 904, in _getdict
      name, rest = line.split('=', 1)
  ValueError: need more than 1 value to unpack

  The root cause seems to be a bug in tox 2.3.0 : 
  https://bitbucket.org/hpk42/tox/issues/181

  It works fine with tox 2.3.1.

  Other openstack projects report similar errors :

  https://bugs.launchpad.net/devstack/+bug/1525352

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


Follow ups