1diff --git a/tests/test_bytes.rs b/tests/test_bytes.rs
2index fdc36ce8..94b46642 100644
3--- a/tests/test_bytes.rs
4+++ b/tests/test_bytes.rs
5@@ -291,6 +291,7 @@ fn split_to_uninitialized() {
6 }
7
8 #[test]
9+#[cfg(panic = "unwind")]
10 fn split_off_to_at_gt_len() {
11     fn make_bytes() -> Bytes {
12         let mut bytes = BytesMut::with_capacity(100);
13@@ -1618,6 +1619,7 @@ fn owned_to_vec() {
14 }
15
16 #[test]
17+#[cfg(panic = "unwind")]
18 fn owned_safe_drop_on_as_ref_panic() {
19     let buf: [u8; 10] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
20     let drop_counter = SharedAtomicCounter::new();
21