Skip to content

Commit 9b06de3

Browse files
CodemodService PythonDeprecatedAssertsBotfacebook-github-bot
CodemodService PythonDeprecatedAssertsBot
authored andcommitted
fbcode//torchx/runner/test (#997)
Summary: Pull Request resolved: #997 Differential Revision: D67847563
1 parent 5e44f20 commit 9b06de3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

torchx/runner/test/api_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def test_status_ui_url(self, json_dumps_mock: MagicMock, _) -> None:
469469
)
470470
app_handle = runner.run(AppDef(app_id, roles=[role]), scheduler="local_dir")
471471
status = none_throws(runner.status(app_handle))
472-
self.assertEquals(resp.ui_url, status.ui_url)
472+
self.assertEqual(resp.ui_url, status.ui_url)
473473

474474
@patch("json.dumps")
475475
def test_status_structured_msg(self, json_dumps_mock: MagicMock, _) -> None:
@@ -493,7 +493,7 @@ def test_status_structured_msg(self, json_dumps_mock: MagicMock, _) -> None:
493493
)
494494
app_handle = runner.run(AppDef(app_id, roles=[role]), scheduler="local_dir")
495495
status = none_throws(runner.status(app_handle))
496-
self.assertEquals(resp.structured_error_msg, status.structured_error_msg)
496+
self.assertEqual(resp.structured_error_msg, status.structured_error_msg)
497497

498498
def test_wait_unknown_app(self, _) -> None:
499499
with self.get_runner() as runner:

torchx/runner/test/config_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def test_load_invalid_runopt(self, _) -> None:
425425
# this makes things super hard to guarantee BC - stale config file will fail
426426
# to run, we don't want that)
427427

428-
self.assertEquals("option_that_exists", cfg.get("s"))
428+
self.assertEqual("option_that_exists", cfg.get("s"))
429429

430430
def test_load_no_section(self) -> None:
431431
cfg = {}

0 commit comments

Comments
 (0)