add python 3.7 unit test job
See ML discussion here [1] for context. [1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html Change-Id: If472ec316c5f5aaee15aab4d72964f806d3efff7 Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
This commit is contained in:
parent
ae059c5648
commit
b3723bed9d
@ -396,6 +396,7 @@
|
||||
- openstack-lower-constraints-jobs
|
||||
- openstack-python-jobs
|
||||
- openstack-python36-jobs
|
||||
- openstack-python37-jobs
|
||||
- openstacksdk-functional-tips
|
||||
- openstacksdk-tox-tips
|
||||
- os-client-config-tox-tips
|
||||
|
@ -1901,7 +1901,10 @@ class TestResourceActions(base.TestCase):
|
||||
microversion=None)
|
||||
|
||||
# Ensure we're done after those three items
|
||||
self.assertRaises(StopIteration, next, results)
|
||||
# In python3.7, PEP 479 is enabled for all code, and StopIteration
|
||||
# raised directly from code is turned into a RuntimeError.
|
||||
# Something about how mock is implemented triggers that here.
|
||||
self.assertRaises((StopIteration, RuntimeError), next, results)
|
||||
|
||||
# Ensure we only made two calls to get this done
|
||||
self.assertEqual(3, len(self.session.get.call_args_list))
|
||||
|
Loading…
x
Reference in New Issue
Block a user