Merge "Ensure doctesting and doc8 testing done in py27 env"
This commit is contained in:
commit
d434212af8
1
ChangeLog
Normal file
1
ChangeLog
Normal file
@ -0,0 +1 @@
|
|||||||
|
.. This is a generated file! Do not edit.
|
@ -42,7 +42,9 @@ def get_callback_name(cb):
|
|||||||
return repr(cb)
|
return repr(cb)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
segments.insert(0, cb.__module__)
|
# When running under sphinx it appears this can be none?
|
||||||
|
if cb.__module__:
|
||||||
|
segments.insert(0, cb.__module__)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
return ".".join(segments)
|
return ".".join(segments)
|
||||||
|
@ -42,6 +42,7 @@ Transitioning a simple machine
|
|||||||
m.process_event('fall')
|
m.process_event('fall')
|
||||||
print(m.pformat())
|
print(m.pformat())
|
||||||
print(m.current_state)
|
print(m.current_state)
|
||||||
|
print(m.terminated)
|
||||||
|
|
||||||
**Expected output:**
|
**Expected output:**
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
hacking<0.11,>=0.10.0
|
hacking<0.11,>=0.10.0
|
||||||
|
|
||||||
|
doc8 # Apache-2.0
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
discover
|
discover
|
||||||
python-subunit>=0.0.18
|
python-subunit>=0.0.18
|
||||||
|
6
tox.ini
6
tox.ini
@ -21,6 +21,12 @@ commands = python setup.py test --slowest --testr-args='{posargs}'
|
|||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8 {posargs}
|
commands = flake8 {posargs}
|
||||||
|
|
||||||
|
[testenv:py27]
|
||||||
|
commands =
|
||||||
|
python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
sphinx-build -b doctest doc/source doc/build
|
||||||
|
doc8 doc/source
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user