Skip to content

Commit

Permalink
Use built-in open in io/test_sequences
Browse files Browse the repository at this point in the history
Built-in open is sufficient. Avoids an extra import of an internal function which is already tested elsewhere.
  • Loading branch information
victorlin committed May 25, 2022
1 parent 0e98435 commit b31b9bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/io/test_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import random

import augur.io.sequences
from augur.io.file import open_file


def random_seq(k):
Expand Down Expand Up @@ -166,7 +165,7 @@ def test_write_single_set_of_sequences_to_lzma_file(self, tmpdir, sequences):
def test_write_sequences_by_external_handle(self, tmpdir, sequences):
output_filename = Path(tmpdir) / Path("new_sequences.fasta")

with open_file(output_filename, "w") as handle:
with open(output_filename, "w") as handle:
total_sequences_written = 0
for sequence in sequences:
sequences_written = augur.io.sequences.write_sequences(
Expand Down

0 comments on commit b31b9bc

Please sign in to comment.