From 57bda1b1dc3c164403d2288d01fc4f9891b8d58f Mon Sep 17 00:00:00 2001
From: Nicolas MAILLET <nicolas.maillet@pasteur.fr>
Date: Fri, 27 Apr 2018 13:46:36 +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 2b58614..3baa5a0 100644
--- a/tests/test_digest.py
+++ b/tests/test_digest.py
@@ -369,7 +369,7 @@ def test_digest_from_input(capsys, tmpdir):
     # Test fasta file
     fasta_file = tmpdir.join("test.fasta")
     fasta_file.write(">Fake1\nWQSDESDFZQS\nDESDF\n>Fake2\nNPHARDORCOMPLET")
-    res = digest.digest_from_input(fasta_file, enzymes, mode)
+    res = digest.digest_from_input(str(fasta_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