From 4a447f961b00093fa33f609be6b7ac53ee181af2 Mon Sep 17 00:00:00 2001 From: Nicolas MAILLET <nicolas.maillet@pasteur.fr> Date: Fri, 27 Apr 2018 13:56:25 +0200 Subject: [PATCH] change local.path to str for test --- tests/test_digest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_digest.py b/tests/test_digest.py index 0bcb560..e52af5d 100644 --- a/tests/test_digest.py +++ b/tests/test_digest.py @@ -403,7 +403,7 @@ def test_digest_from_input(capsys, tmpdir): fastq_file = tmpdir.join("test.fastq") fastq_file.write("@Fake1\nWQSDESDFZQSDESDF\n+Fake1\nnWQSDESDFZQSDESDF\n@Fa"\ "ke2\nNPHARDORCOMPLET\n+Fake2\nnNPHARDORCOMPLET\n") - res = digest.digest_from_input(fastq_file, enzymes, mode) + res = digest.digest_from_input(str(fastq_file), enzymes, mode) assert res[0][0].__repr__() == "Number of cleavage: 4\nNumber of miss-cle"\ "avage: 0\nPositions of miss-cleavage: []"\ "\nRatio of miss-cleavage: 0.0\nPeptides: "\ -- GitLab