Skip panic_unsendable test if -Cpanic=abort is given
This commit is contained in:
parent
c6abf24cca
commit
3ae1caa55a
|
@ -182,6 +182,13 @@ struct UnsendableChild {}
|
||||||
/// If a class is marked as `unsendable`, it panics when accessed by another thread.
|
/// If a class is marked as `unsendable`, it panics when accessed by another thread.
|
||||||
#[test]
|
#[test]
|
||||||
fn panic_unsendable() {
|
fn panic_unsendable() {
|
||||||
|
if option_env!("RUSTFLAGS")
|
||||||
|
.map(|s| s.contains("-Cpanic=abort"))
|
||||||
|
.unwrap_or(false)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let gil = Python::acquire_gil();
|
let gil = Python::acquire_gil();
|
||||||
let py = gil.python();
|
let py = gil.python();
|
||||||
let base = || UnsendableBase {
|
let base = || UnsendableBase {
|
||||||
|
|
Loading…
Reference in a new issue