(&mut self)
| 66 | #[cfg(test)] |
| 67 | impl Drop for ForcedPluginTestFlagGuard { |
| 68 | fn drop(&mut self) { |
| 69 | match self.kind { |
| 70 | ForcedPluginTestFlagKind::ValidateConfigToPyError => { |
| 71 | if let Ok(mut forced_kinds) = FORCE_VALIDATE_CONFIG_TO_PY_ERROR.lock() { |
| 72 | forced_kinds.remove(&self.plugin_kind); |
| 73 | } |
| 74 | } |
| 75 | ForcedPluginTestFlagKind::PluginContextNewError => { |
| 76 | if let Ok(mut forced_kinds) = FORCE_PLUGIN_CONTEXT_NEW_ERROR.lock() { |
| 77 | forced_kinds.remove(&self.plugin_kind); |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | #[cfg(test)] |