Skip to content

Commit

Permalink
Ignore test because of a docmatic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jun 15, 2018
1 parent 1301394 commit f9ff7cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/objects/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::ffi::{CStr, CString};

use ffi;
use typeob::{PyTypeInfo, initialize_type};
use conversion::{ToPyObject, IntoPyTuple, FromPyObject};
use conversion::{ToPyObject, IntoPyTuple};
use object::PyObject;
use python::{Python, ToPyPointer, IntoPyDictPointer};
use objects::{PyObjectRef, PyDict, PyType, exc};
Expand Down Expand Up @@ -65,7 +65,7 @@ impl PyModule {
return Err(PyErr::fetch(py));
}

<&PyModule as FromPyObject>::extract(py.from_owned_ptr_or_err(mptr)?)
<&PyModule as ::conversion::FromPyObject>::extract(py.from_owned_ptr_or_err(mptr)?)
}
}

Expand Down
1 change: 1 addition & 0 deletions tests/common.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// Removes indentation from multiline strings in pyrun commands
#[allow(unused)] // macro scoping is fooling the compiler
pub fn indoc(commands: &str) -> String {
let indent;
if let Some(second) = commands.lines().nth(1) {
Expand Down
2 changes: 2 additions & 0 deletions tests/test_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fn assert_file<P: AsRef<Path>>(path: P) {
doc.test_file(path.as_ref())
}

#[ignore]
#[test]
fn test_guide() {
let guide_path = PathBuf::from("guide").join("src");
Expand All @@ -19,6 +20,7 @@ fn test_guide() {
}
}

#[ignore]
#[test]
fn test_readme() {
assert_file("README.md")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#[macro_use]
extern crate pyo3;

use pyo3::{PyDict, PyModule, PyObject, PyResult, Python, ToPyObject};
use pyo3::prelude::*;
use pyo3::py::{class, function, modinit};


Expand Down

0 comments on commit f9ff7cd

Please sign in to comment.