Skip to content

Commit

Permalink
fix warning B908
Browse files Browse the repository at this point in the history
Differential Revision: D53461157

Pull Request resolved: #816
  • Loading branch information
yikaiMeta authored Feb 8, 2024
1 parent 4a2d403 commit a2800d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchx/runner/test/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def get_runner(self) -> Generator[Runner, None, None]:

def test_validate_no_roles(self, _) -> None:
with self.get_runner() as runner:
app = AppDef("no roles")
with self.assertRaises(ValueError):
app = AppDef("no roles")
runner.run(app, scheduler="local_dir")

def test_validate_no_resource(self, _) -> None:
Expand Down

0 comments on commit a2800d4

Please sign in to comment.