Repository navigation
Closed
Labels
good first issueeasy issue that is friendly to new contributorstatus: help wanteddevelopers would like help from experts on this topictype: docsdocumentation improvement, missing or needing clarification
Milestone
Description
As discussed in IRC with @RonnyPfannschmidt I'll list some stuff from #1046 here as the PR is clearly an improvement over the current state, so I want to merge it.
-
test_time.pyindoc/en/example/parametrize.rstseems to be broken:
======= ERRORS ========
_______ ERROR collecting test_time.py ________
$PYTHON_PREFIX/lib/python3.4/site-packages/_pytest/python.py:581: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
$PYTHON_PREFIX/lib/python3.4/site-packages/py/_path/local.py:650: in pyimport
__import__(modname)
E File "$REGENDOC_TMPDIR/test_time.py", line 5
E (datetime(2001, 12, 11), datetime(2001, 12, 12), timedelta(-1)),
E ^
E SyntaxError: unexpected EOF while parsing
======= 1 error in 0.12 seconds ========
(running the code by hand works though)
- There's an example in
doc/en/example/pythoncollection.rstwhich demonstrates having a test which runs on Python 2 only - the output now fails to bring the point across as it's run with python 3 (see fix documentation regeneration, kill Makefile #1046) -
printshould be adjusted toprint()as the examples are run with Python 3 now, otherwise tuple printing looks odd:
- test_module.py E('setting up a test failed!', 'test_module.py::test_setup_fails')
- F('executing test failed', 'test_module.py::test_call_fails')
+ test_module.py Esetting up a test failed! test_module.py::test_setup_fails
+ Fexecuting test failed test_module.py::test_call_fails-
doc/en/example/nonpython.rstdoesn't seem to be deterministic when regenerating the docs, which would be nice:
@@ -31,7 +31,7 @@ now execute the test specification::
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
collected 2 items
- test_simple.yml .F
+ test_simple.yml F.
======= FAILURES ========
_______ usecase: hello ________
@@ -64,8 +64,8 @@ consulted when reporting in ``verbose`` mode::
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
collecting ... collected 2 items
- test_simple.yml::ok PASSED
test_simple.yml::hello FAILED
+ test_simple.yml::ok PASSED
======= FAILURES ========
_______ usecase: hello ________
@@ -85,7 +85,7 @@ interesting to just look at the collection tree::
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
collected 2 items
<YamlFile 'test_simple.yml'>
- <YamlItem 'ok'>
<YamlItem 'hello'>
+ <YamlItem 'ok'>
======= in 0.12 seconds ========- Line numbers change when regenerating the docs - maybe those could be masked with regendoc somehow?
@@ -133,7 +133,7 @@ objects, they are still using the default pytest representation::
======= ERRORS ========
_______ ERROR collecting test_time.py ________
- $PYTHON_PREFIX/lib/python3.4/site-packages/_pytest/python.py:581: in _importtestmodule
+ $PYTHON_PREFIX/lib/python3.4/site-packages/_pytest/python.py:584: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
$PYTHON_PREFIX/lib/python3.4/site-packages/py/_path/local.py:650: in pyimport
__import__(modname)(and others)
Metadata
Metadata
Assignees
Labels
good first issueeasy issue that is friendly to new contributorstatus: help wanteddevelopers would like help from experts on this topictype: docsdocumentation improvement, missing or needing clarification
Activity
nicoddemus commentedon Aug 3, 2016
@The-Compiler I was reviewing this and I think all except for line numbers changing are fixed already in
features. If you agree, I think we should close this and perhaps open another issue for regendoc specifically (perhaps even in regendoc's issue tracker).nicoddemus commentedon Aug 3, 2016
Also see #1789
The-Compiler commentedon Aug 3, 2016
I'm just going to trust you on that one 😉
nicoddemus commentedon Aug 3, 2016
👍 😁