Add py34 job and fix errors

Change-Id: Icf9724c34b54a2d6c7194227f262d24721558199
This commit is contained in:
Ilya Shakhat
2016-01-22 15:25:03 +03:00
parent b486eee8f0
commit 1e81810ab9
4 changed files with 8 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ following requirements need to be satisfied:
This section describes installation steps for ZeroMQ. ZeroMQ (also ZMQ or 0MQ) This section describes installation steps for ZeroMQ. ZeroMQ (also ZMQ or 0MQ)
is an embeddable networking library but acts like a concurrency framework. is an embeddable networking library but acts like a concurrency framework.
Unlike other AMQP-based drivers, such as RabbitMQ, ZeroMQ doesnt have any Unlike other AMQP-based drivers, such as RabbitMQ, ZeroMQ doesn't have any
central brokers in oslo.messaging. Instead, each host (running OpenStack central brokers in oslo.messaging. Instead, each host (running OpenStack
services) is both a ZeroMQ client and a server. As a result, each host needs to services) is both a ZeroMQ client and a server. As a result, each host needs to
listen to a certain TCP port for incoming connections and directly connect to listen to a certain TCP port for incoming connections and directly connect to
@@ -230,7 +230,7 @@ following requirements need to be satisfied:
configuration files. configuration files.
* To enable the driver, in the section [DEFAULT] of each configuration file, * To enable the driver, in the section [DEFAULT] of each configuration file,
the rpc_backend flag must be set to zmq and the rpc_zmq_host flag the 'rpc_backend' flag must be set to 'zmq' and the 'rpc_zmq_host' flag
must be set to the hostname of the node. must be set to the hostname of the node.
.. code-block:: none .. code-block:: none

View File

@@ -1,4 +1,5 @@
rst2pdf rst2pdf
six>=1.9.0
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
sphinxcontrib-httpdomain sphinxcontrib-httpdomain
sphinx_rtd_theme sphinx_rtd_theme

View File

@@ -14,6 +14,7 @@ import glob
import re import re
import docutils.core import docutils.core
import six
import testtools import testtools
@@ -98,13 +99,12 @@ class TestTitles(testtools.TestCase):
if x not in expect[section]] if x not in expect[section]]
for ex_s in extra_subsections: for ex_s in extra_subsections:
s_name = (ex_s if type(ex_s) is str or s_name = (ex_s if isinstance(ex_s, six.string_types)
type(ex_s) is unicode else ex_s["name"]) else ex_s["name"])
if s_name.startswith("Test Case"): if s_name.startswith("Test Case"):
new_missing_subsections = [] new_missing_subsections = []
for m_s in missing_subsections: for m_s in missing_subsections:
m_s_name = (m_s if type(m_s) is str or m_s_name = (m_s if isinstance(m_s, six.string_types)
type(m_s) is unicode
else m_s["name"]) else m_s["name"])
if not m_s_name.startswith("Test Case"): if not m_s_name.startswith("Test Case"):
new_missing_subsections.append(m_s) new_missing_subsections.append(m_s)

View File

@@ -1,5 +1,5 @@
[tox] [tox]
envlist = docs,py27,pep8 envlist = docs,py34,py27,pep8
minversion = 1.6 minversion = 1.6
skipsdist = True skipsdist = True