diff --git a/test/test_objectives.py b/test/test_objectives.py index b957216bf26..d1b354b4c0b 100644 --- a/test/test_objectives.py +++ b/test/test_objectives.py @@ -200,6 +200,8 @@ pytest.mark.filterwarnings( "ignore:The PyTorch API of nested tensors is in prototype" ), + pytest.mark.filterwarnings("ignore:unclosed event loop:ResourceWarning"), + pytest.mark.filterwarnings("ignore:unclosed.*socket:ResourceWarning"), ]