Skip to content

fixing pairwise aligner tests for python3 - #2491

Merged
mdehoon merged 3 commits into
biopython:masterfrom
mdehoon:test_pairwise_aligner_sysversion
Jan 5, 2020
Merged

mdehoon merged 3 commits into
biopython:masterfrom
mdehoon:test_pairwise_aligner_sysversion

Conversation

@mdehoon

@mdehoon mdehoon commented Jan 4, 2020

Copy link
Copy Markdown
Contributor

This pull request updates the unittest for the pairwise aligner to python3.

  • 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.rst file, have run flake8 locally, and
    understand 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.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@codecov

codecov Bot commented Jan 4, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #2491 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2491      +/-   ##
==========================================
+ Coverage   84.77%   84.77%   +<.01%     
==========================================
  Files         322      322              
  Lines       52460    52450      -10     
==========================================
- Hits        44475    44467       -8     
+ Misses       7985     7983       -2
Impacted Files Coverage Δ
Bio/Seq.py 98.19% <0%> (+0.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38a83c5...ba09f3c. Read the comment docs.

Comment thread Tests/test_pairwise_aligner.py Outdated
str(context_manager.exception))

def test_aligner_array_errors(self):
import array

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the import to the top of the file?

@peterjc

peterjc commented Jan 4, 2020

Copy link
Copy Markdown
Member

Why do you prefer defining message = ... as a local variable?

@mdehoon

mdehoon commented Jan 4, 2020

Copy link
Copy Markdown
Contributor Author

Why do you prefer defining message = ... as a local variable?

To make travis happy.

@peterjc

peterjc commented Jan 4, 2020

Copy link
Copy Markdown
Member

There's probably a better way to make Travis happy, but if you're happy with this, that's fine.

@mdehoon
mdehoon merged commit db102fa into biopython:master Jan 5, 2020
@mdehoon
mdehoon deleted the test_pairwise_aligner_sysversion branch January 5, 2020 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants