Unit test failure in Python 3.5: OrderedDict mutated during iteration
Bug #1565728 reported by
Thomas Goirand
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystoneauth |
Fix Released
|
Medium
|
Thomas Goirand |
Bug Description
Yet another instance of this problem. This will come again until we have a Python 3.5 gate up and running. This time, the issue is in keystoneauth1/
- for scheme in session_
+ for scheme in list(session_
I'm sending the patch for review.
Changed in keystoneauth: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Just FYI, as I expect someone to ask, here's the failures in Py 35:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. test_betamax_ fixture. TestBetamaxFixt ure.test_ keystoneauth_ betamax_ fixture tests.unit. test_betamax_ fixture. TestBetamaxFixt ure.test_ keystoneauth_ betamax_ fixture ------- ------- ------- ------- ------- ------- ------- ------- ------- zigo/sources/ openstack/ mitaka/ python- keystoneauth1/ build-area/ python- keystoneauth1- 2.4.0/keystonea uth1/tests/ unit/test_ betamax_ fixture. py", line 51, in test_keystoneau th_betamax_ fixture _replay_ cassette( ) zigo/sources/ openstack/ mitaka/ python- keystoneauth1/ build-area/ python- keystoneauth1- 2.4.0/keystonea uth1/tests/ unit/test_ betamax_ fixture. py", line 47, in _replay_cassette python3/ dist-packages/ positional/ __init_ _.py", line 94, in inner zigo/sources/ openstack/ mitaka/ python- keystoneauth1/ build-area/ python- keystoneauth1- 2.4.0/keystonea uth1/session. py", line 149, in __init__ session( session) zigo/sources/ openstack/ mitaka/ python- keystoneauth1/ build-area/ python- keystoneauth1- 2.4.0/keystonea uth1/fixture/ keystoneauth_ betamax. py", line 54, in _construct_ session_ with_betamax obj.adapters. keys():
FAIL: keystoneauth1.
keystoneauth1.
-------
_StringException: Traceback (most recent call last):
File "/home/
self.
File "/home/
s = session.Session()
File "/usr/lib/
return func(*args, **kwargs)
File "/home/
self.session = _construct_
File "/home/
for scheme in session_
RuntimeError: OrderedDict mutated during iteration
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. test_betamax_ fixture. TestBetamaxFixt ure.test_ replay_ of_bad_ url_fails tests.unit. test_betamax_ fixture. TestBetamaxFixt ure.test_ replay_ of_bad_ url_fails ------- ------- ------- ------- ------- ------- ------- ------- ------- zigo/sources/ openstack/ mitaka/ python- keystoneauth1/ build-area/ python- keystoneauth1- 2.4.0/keystonea uth1/tests/ unit/test_ betamax_ fixture. py", line 59, in test_replay_ of_bad_ url_fails python3/ dist-packages/ positional/ __init_ _.py", line 94, in inner zigo/sources/ openstack/ mitaka/ python- keystoneauth1/ build-area/ python- keystoneauth1- 2.4.0/keystonea uth1/session. py", line 149, in __init__ session( session) zigo/sources/ openstack/ mitaka/ python- keystoneauth1/ build-area/ python- keystoneauth1- 2.4.0/keystonea uth1/fixture/ keystoneauth_ betamax. py", line 54, in _construct_ session_ with_betamax obj.adapters. keys():
FAIL: keystoneauth1.
keystoneauth1.
-------
_StringException: Traceback (most recent call last):
File "/home/
s = session.Session()
File "/usr/lib/
return func(*args, **kwargs)
File "/home/
self.session = _construct_
File "/home/
for scheme in session_
RuntimeError: OrderedDict mutated during iteration