Skip to content

Commit 4f13189

Browse files
committed
Disable flatten_twice in not(debug)
Closes #538.
1 parent 98fdfb0 commit 4f13189

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/flatten.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ fn flatten() {
3535
}
3636

3737
#[test]
38-
#[should_panic]
38+
#[cfg_attr(
39+
not(debug_assertions),
40+
ignore = "only panics in debug mode, else calls std::process::exit"
41+
)]
42+
#[should_panic = "Non-unique argument name: arg is already in use"]
3943
fn flatten_twice() {
4044
#[derive(StructOpt, PartialEq, Debug)]
4145
struct Common {

0 commit comments

Comments
 (0)