You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is something subtle about local files versus the installed files. If you reinstall Biopython after making your changes, does it then work?
The issue here is sometimes (and I never worked out when), rather than testing the newly built code in the build/ folder (which is what run_tests.py adds to the path), it uses the (typically older) code from an installed copy of Biopython.
This seems to work. I used a Jetstream Ubuntu 18.04 image and installed BioPython 1.62 using Python 2.7.15rc1 and 3.6.5.
77 doctests ran successfully in both cases using the latest BioPython. I then modified a Bio.Align doctest so it would fail, and rebuilt. The doctests successfully, well, failed :)
The only thing that occurs to me is a namespace issue, either in the BioPython code or something caused by older versions of Python themselves. Either way, I think this issue should be closed.
Activity
peterjc commentedon Apr 28, 2015
I think this is something subtle about local files versus the installed files. If you reinstall Biopython after making your changes, does it then work?
ghuls commentedon Apr 28, 2015
Thanks, after installing it works.
Is it documented somewhere?
http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc261
[-]doctest do not seem to work[/-][+]install required prior to running doctests[/+]peterjc commentedon Apr 28, 2015
It ought to work without installation. This issue is now the documentation for this bug.
Remove Bio.Motif from doctest list in run_tests.py
Remove Bio.Motif from doctest list in run_tests.py
benfulton commentedon Aug 24, 2018
Should doctest run without building (python setup.py build) ?
If so, the doctests that rely on Bio._aligners must be discarded as they cannot work.
If not, I think this issue can be closed. After building but without installing:
$ python run_tests.py doctest
Ran 77 tests in 3.950 seconds
peterjc commentedon Aug 24, 2018
Building without installing then testing ought to work:
Or variations like this:
peterjc commentedon Aug 24, 2018
The issue here is sometimes (and I never worked out when), rather than testing the newly built code in the
build/folder (which is whatrun_tests.pyadds to the path), it uses the (typically older) code from an installed copy of Biopython.Does this work reliably for you?
benfulton commentedon Aug 26, 2018
This seems to work. I used a Jetstream Ubuntu 18.04 image and installed BioPython 1.62 using Python 2.7.15rc1 and 3.6.5.
77 doctests ran successfully in both cases using the latest BioPython. I then modified a Bio.Align doctest so it would fail, and rebuilt. The doctests successfully, well, failed :)
The only thing that occurs to me is a namespace issue, either in the BioPython code or something caused by older versions of Python themselves. Either way, I think this issue should be closed.
peterjc commentedon Aug 27, 2018
Thanks for looking into this Ben - fingers crossed whatever caused this has been resolved.