Skip to content

Commit

Permalink
Disable flatten_twice in not(debug)
Browse files Browse the repository at this point in the history
Closes TeXitoi#538.
  • Loading branch information
tamird committed Sep 30, 2024
1 parent 37fe3f2 commit a27d75e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ 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 a27d75e

Please sign in to comment.