Skip to content

Commit a27d75e

Browse files
committed
Disable flatten_twice in not(debug)
Closes #538.
1 parent 37fe3f2 commit a27d75e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/flatten.rs

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

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

0 commit comments

Comments
 (0)