From 57de066a6baa5512bffd3e63cb3bf7c2bd54f3c2 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Wed, 25 Apr 2018 15:04:51 +0200 Subject: [PATCH] Use `docmatic` with additional arguments --- tests/test_doc.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_doc.rs b/tests/test_doc.rs index 90eb8f44..8ff814b9 100644 --- a/tests/test_doc.rs +++ b/tests/test_doc.rs @@ -7,18 +7,16 @@ fn pypath() -> Option { option_env!("PYTHON").map(|py| PathBuf::from(py).join("libs")) } - fn test_file>(path: P) { let args = if cfg!(windows) { - vec![("--library-path", pypath().unwrap())] + let py = pypath().unwrap().to_str().unwrap().to_string(); + vec![String::from("--library-path"), py] } else { Vec::new() }; docmatic::assert_file_with(path, &args); } - - #[test] fn test_guide() { let guide_path = PathBuf::from("guide").join("src");