File tree Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -557,12 +557,6 @@ mod tests {
557
557
#[ test]
558
558
#[ should_panic( expected = "new panic" ) ]
559
559
fn fetching_panic_exception_resumes_unwind ( ) {
560
- // TODO replace with #[cfg(panic = "unwind")] once stable
561
- if !crate :: cfg_panic_unwind ( ) {
562
- // panic to meet the expected abort in panic=abort :-/
563
- panic ! ( "new panic" ) ;
564
- }
565
-
566
560
use crate :: panic:: PanicException ;
567
561
568
562
let gil = Python :: acquire_gil ( ) ;
Original file line number Diff line number Diff line change @@ -425,9 +425,3 @@ pub mod doc_test {
425
425
doctest ! ( "guide/src/trait_bounds.md" , guide_trait_bounds_md) ;
426
426
doctest ! ( "guide/src/types.md" , guide_types_md) ;
427
427
}
428
-
429
- // interim helper until #[cfg(panic = ...)] is stable
430
- #[ cfg( test) ]
431
- fn cfg_panic_unwind ( ) -> bool {
432
- option_env ! ( "RUSTFLAGS" ) . map_or ( true , |var| !var. contains ( "-Cpanic=abort" ) )
433
- }
Original file line number Diff line number Diff line change @@ -695,11 +695,6 @@ mod test {
695
695
696
696
#[ test]
697
697
fn test_allow_threads_panics_safely ( ) {
698
- // TODO replace with #[cfg(panic = "unwind")] once stable
699
- if !crate :: cfg_panic_unwind ( ) {
700
- return ;
701
- }
702
-
703
698
let gil = Python :: acquire_gil ( ) ;
704
699
let py = gil. python ( ) ;
705
700
You can’t perform that action at this time.
0 commit comments