Repository navigation
Conversation
Paths phenotype/Plate.json were changed to Tests/phenotype/Plate.json
Path phenotype/Plates.csv changed to Tests/phenotype/Plates.csv
Print an ID of previously selected well instead of erroneously iterating over
Show complete output in the print output.
Show complete output in the print output
This reverts commit 7310782. The path are OK if doctest invoked with Tests/run_tests.py
This reverts commit 43ccaf9. The paths are OK if doctest invoked with Tests/run_tests.py
…ak/biopython into fix_untested_doctest_phenotype
Travis builds did not fail with py38 when .travis-tox.ini was not edited yet
NumPy fails to build for py38-dev but Bio.phenotype.phen_micro needs to be removed from Tests.run_tests.EXCLUDE_DOCTEST_MODULES in order to be tested at TravisCI.
|
@dizak The files which are listed in the 'numpy-requiring' section of > python run_tests.py docstest
...
Bio.phenotype docstring test ... ok
Bio.phenotype.phen_micro docstring test ... ok
Bio.phenotype.pm_fitting docstring test ... skipped, missing Python dependency
...If Or do I miss something? |
|
|
||
| >>> for well in plate.get_column(12): | ||
| ... print(well.id) | ||
| ... |
There was a problem hiding this comment.
Can you put this ... line back, you would see it at the interactive python prompt.
| H01 | ||
| H02 | ||
| H03 | ||
| ... |
There was a problem hiding this comment.
Why fill out the full list? You could list 1, 2, 3, ..., 12 if you wanted to be a little more explicit.
| "Bio.PDB.Vector", | ||
| "Bio.phenotype", | ||
| "Bio.phenotype.parse", | ||
| "Bio.phenotype.phen_micro", |
There was a problem hiding this comment.
Why are you removing this check? Don't the Bio.phenotype.phen_micro tests require NumPy?
|
Markus is right, e.g. a very recent master branch test, looking at Python 3.7 where numpy is installed: I don't see anything which needs fixing here? |
|
All your remarks are correct. I am sorry I wasted your time. The first changes were made after running the doctests manually, without the Lines 364 to 365 in fd4d186 I should see this before. Apologies once more, this can be closed. |
|
Ticked on #1902, thanks for spotting that oversight. When you said you ran the doctests manually, what did you mean? You can also run an individual file's doctests via this snippet at the end of the file: if __name__ == "__main__":
from Bio._utils import run_doctest
run_doctest(verbose=0)(However we've found for some modules this does not work on Python 3 due to local imports) |
|
In my stupidity, I have just run |
|
Ah, in that case |
|
I believe the documentation is fine, it was just the #1902 TODO that made me think there must be something wrong with it since it's on the list :) |
This pull request addresses untested doctests of
Bio.phenotype.phen_microI hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runflake8locally, andunderstand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
The tests were run on TravisCi activated for my fork of this repository. For this purpose, the
Tests.run_tests.pyand.travis-tox.iniwere modified. Otherwise, the tests would be skipped since this module requiresnumpy. I suppose the modifications of.travis-tox.inishould be reverted once the rest of the changes in this pull request are accepted.The tests failed for Python 3.8 due to unsuccessful installation of
numpy. It seems it is independent of the doctests themselves.