From 69cbf1a494e68bbd3420e9317941525f0215f442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Niederb=C3=BChl?= Date: Sun, 20 Oct 2019 15:12:17 +0200 Subject: [PATCH] Remove test_get_pybytes --- tests/test_bytes.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/test_bytes.rs b/tests/test_bytes.rs index 0b0f37a0..cffd6053 100644 --- a/tests/test_bytes.rs +++ b/tests/test_bytes.rs @@ -1,31 +1,13 @@ use pyo3::prelude::*; -use pyo3::types::PyBytes; use pyo3::wrap_pyfunction; mod common; -#[pyfunction] -fn get_pybytes() -> PyObject { - let gil = Python::acquire_gil(); - let py = gil.python(); - - PyBytes::new(py, b"Hello World").into() -} - #[pyfunction] fn bytes_pybytes_conversion(bytes: &[u8]) -> &[u8] { bytes } -#[test] -fn test_get_pybytes() { - let gil = Python::acquire_gil(); - let py = gil.python(); - - let get_bytes = wrap_pyfunction!(get_pybytes)(py); - py_assert!(py, get_bytes, "get_bytes() == b'Hello World'"); -} - #[test] fn test_pybytes_bytes_conversion() { let gil = Python::acquire_gil();