Skip to content

Commit

Permalink
Disable flatten_twice in not(debug)
Browse files Browse the repository at this point in the history
Closes #538.
  • Loading branch information
tamird committed Oct 4, 2024
1 parent 98fdfb0 commit 4f13189
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ fn flatten() {
}

#[test]
#[should_panic]
#[cfg_attr(
not(debug_assertions),
ignore = "only panics in debug mode, else calls std::process::exit"
)]
#[should_panic = "Non-unique argument name: arg is already in use"]
fn flatten_twice() {
#[derive(StructOpt, PartialEq, Debug)]
struct Common {
Expand Down

0 comments on commit 4f13189

Please sign in to comment.