Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
McPatate committed Jan 14, 2025
1 parent 3fc5e55 commit 11533c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bindings/python/src/processors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ pub fn processors(m: &Bound<'_, PyModule>) -> PyResult<()> {

#[cfg(test)]
mod test {
use std::sync::Arc;
use std::sync::{Arc, RwLock};

use pyo3::prelude::*;
use tk::processors::bert::BertProcessing;
Expand Down Expand Up @@ -637,15 +637,15 @@ mod test {
assert_eq!(py_ser, rs_wrapper_ser);

let py_processing: PyPostProcessor = serde_json::from_str(&rs_processing_ser).unwrap();
match py_processing.processor.as_ref() {
match *py_processing.processor.as_ref().read().unwrap() {
PostProcessorWrapper::Bert(_) => (),
_ => panic!("Expected Bert postprocessor."),
}

let py_processing: PyPostProcessor = serde_json::from_str(&rs_wrapper_ser).unwrap();
match py_processing.processor.as_ref() {
match *py_processing.processor.as_ref().read().unwrap() {
PostProcessorWrapper::Bert(_) => (),
_ => panic!("Expected Bert postprocessor."),
}
};
}
}

0 comments on commit 11533c5

Please sign in to comment.