Repository navigation
exclude rather than include doctests in "run_tests.py doctest" - #1906
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1906 +/- ##
==========================================
- Coverage 84.98% 83.95% -1.03%
==========================================
Files 310 293 -17
Lines 49913 46938 -2975
==========================================
- Hits 42417 39408 -3009
- Misses 7496 7530 +34
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1906 +/- ##
==========================================
- Coverage 85.04% 85.04% -0.01%
==========================================
Files 311 312 +1
Lines 50137 50139 +2
==========================================
- Hits 42640 42639 -1
- Misses 7497 7500 +3
Continue to review full report at Codecov.
|
| 'BioSQL.BioSeqDatabase', | ||
| 'Bio.SubsMat', | ||
| 'Bio.SubsMat.FreqTable', | ||
| 'Bio.TogoWS', |
There was a problem hiding this comment.
Bio.TogoWS is an online module, probably best to treat it the same as Bio.Entrez (below), and ultimately make this conditional on the --offline switch if we can make these into working doctests.
| for pkg in find_packages(path): | ||
| modules.add(pkg) | ||
| pkgpath = path + '/' + pkg.replace('.', '/') | ||
| if sys.version_info.major == 2 or sys.version_info.minor < 6: |
There was a problem hiding this comment.
Would this not be clearer?: sys.version_info < (3, 6)
| modules = find_modules(self.testdir + '/..') | ||
| modules.difference_update(set(EXCLUDE_DOCTEST_MODULES)) | ||
| mods_list = list(modules) | ||
| mods_list.sort() |
There was a problem hiding this comment.
In place of these two lines,
mods_list = list(modules)
mods_list.sort()I'd save a line here using:
mod_list = sorted(modules)|
I like how this is going. I see we have some failures as follows: Those modules ought to have a minimal docstring anyway, so we should do that - which would help with resolving #1203, where I'd like to enable the For In the case of |
|
I adapted the restriction stuff and comments match too. I left out the (C) Frederic Sohm because I'm skeptical. These are autogenerated and, if any, the (C) of the sources should be on them. Opinions? |
|
Frederic Sohm has some claim to any copyright on the autogenerated file, and thus far we don't have permission to dual license his contributions (See #898). I would be inclined to leave the copyright statement in place, and the old license only. Being pragmatic, we want to replace |
|
Passes now. Please review. Sorry again for the number of commits. |
|
The pillow / PIL import is a puzzle, I was thinking something had changed on AppVeyor or the Python ecosystem in Jan 2019, resulting in a new failure: e.g. This worked on Monday https://ci.appveyor.com/project/biopython/biopython/builds/21768582 but failed days later with https://ci.appveyor.com/project/biopython/biopython/builds/21822450/job/xi33e20t6kyoyy3m even though the associated pull request which added I found a similar issue back with Pillow 4.1 and the exact version of Python used: https://stackoverflow.com/questions/43264773/pil-dll-load-failed-specified-procedure-could-not-be-found However, specifically installing pillow 5.3, 5.2, 5.1, 5.0, or 4.3 didn't work here (tested on my fork). However pillow 4.2 did, I'm not convinced this isn't just a transient problem elsewhere... but tweaking how we test the import also seemed to work (your latest commit passed). |
| from PIL import Image | ||
| del Image | ||
| except ImportError: | ||
| # Missing on Jython or Python 2.4 |
There was a problem hiding this comment.
This comment can be removed (not relevant to the PIL / pillow import for Image)
|
Why do I get the |
|
@rwst the flake8 error was down to a bug in a flake8 dependency, config-parser, since fixed. See #1909 (comment) I expect quite a few people/projects would have been caught out by this, even though it was fixed the same day - which was good. |
|
I've push some trivial additions to your branch... |
|
I've extracted the docstring work with |
|
Looks like I can close this one. |
|
Is it too late to undelete the branch and reopen this? The core improvement has not yet been merged. |
|
I was not aware that things were not merged, sorry, it seems recovered. What needs to be done? |
|
GitHub says there is a merge conflict now (not surprising as there have been a few more doctest added to Are you familiar and confident with using |
|
Let's see if this worked. Better no longer delay the merge if it's good. |
|
Looks like 3e65121 got lost, presumably during manual fixing of the merge conflicts. Leave this with me... |
|
How does this look? Rebased (again) and squashed down to one commit (still with your name). I then included a second commit to update the Tutorial chapter. |
|
Fine with me. |
|
Applied, thank you! |
This pull request addresses issue #1904
I 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 and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks 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.)