Skip to content

Commit 9aaf804

Browse files
saitcakmakfacebook-github-bot
authored andcommitted
Suppress dtype warnings in unit tests (#1539)
Summary: Pull Request resolved: #1539 The dtype warnings were being raised a few too many times when running unit tests. This adds a filter to ignore them. Reviewed By: Balandat Differential Revision: D41757594 fbshipit-source-id: 3af3d1e5265febea7f9767616aeefbc5332520d9
1 parent a39e0ac commit 9aaf804

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

botorch/utils/testing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ def setUp(self):
4545
warnings.resetwarnings()
4646
settings.debug._set_state(False)
4747
warnings.simplefilter("always", append=True)
48+
warnings.filterwarnings(
49+
"ignore",
50+
message="The model inputs are of type",
51+
category=UserWarning,
52+
)
4853

4954

5055
class BaseTestProblemBaseTestCase:

0 commit comments

Comments
 (0)