Skip to content

Commit d6c41e0

Browse files
galrotemfacebook-github-bot
authored andcommitted
fix test_auto_unit (#1035)
Summary: Pull Request resolved: #1035 as title. There's another triton error message which was introduced at some point Reviewed By: diego-urgell Differential Revision: D83592092 fbshipit-source-id: 00c74d56a8a62c77192f441d7799fdb617c2d4c1
1 parent 830fc04 commit d6c41e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/framework/test_auto_unit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,10 @@ def configure_model(self):
379379
):
380380
unit_type(module=module)
381381

382-
expected_warnings = [
382+
self.assertTrue(
383383
"The self.module attribute is managed by AutoUnit and is not meant to be reassigned."
384-
]
385-
self.assertEqual(warning_container, expected_warnings)
384+
in warning_container
385+
)
386386

387387
@skip_if_not_distributed
388388
def test_auto_unit_ddp(self) -> None:

0 commit comments

Comments
 (0)