diff --git a/botorch/utils/testing.py b/botorch/utils/testing.py index b318e6a1e2..6df7ad2a67 100644 --- a/botorch/utils/testing.py +++ b/botorch/utils/testing.py @@ -17,7 +17,11 @@ import torch from botorch.acquisition.objective import PosteriorTransform -from botorch.exceptions.warnings import BotorchTensorDimensionWarning, InputDataWarning +from botorch.exceptions.warnings import ( + BotorchTensorDimensionWarning, + InputDataWarning, + NumericsWarning, +) from botorch.models.model import FantasizeMixin, Model from botorch.posteriors.gpytorch import GPyTorchPosterior from botorch.posteriors.posterior import Posterior @@ -68,6 +72,16 @@ def setUp(self, suppress_input_warnings: bool = True) -> None: message=r"Data \(input features\) is not", category=InputDataWarning, ) + warnings.filterwarnings( + "ignore", + message="has known numerical issues", + category=NumericsWarning, + ) + warnings.filterwarnings( + "ignore", + message="Model converter code is deprecated", + category=DeprecationWarning, + ) def assertAllClose( self,