Skip to content

Commit c4a1c4c

Browse files
CodemodService PythonDeprecatedAssertsBotfacebook-github-bot
authored andcommitted
fbcode//torchx/runner/test
Differential Revision: D60508129
1 parent 86f4344 commit c4a1c4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

torchx/runner/test/api_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def test_status_ui_url(self, json_dumps_mock: MagicMock, _) -> None:
427427
)
428428
app_handle = runner.run(AppDef(app_id, roles=[role]), scheduler="local_dir")
429429
status = none_throws(runner.status(app_handle))
430-
self.assertEquals(resp.ui_url, status.ui_url)
430+
self.assertEqual(resp.ui_url, status.ui_url)
431431

432432
@patch("json.dumps")
433433
def test_status_structured_msg(self, json_dumps_mock: MagicMock, _) -> None:
@@ -451,7 +451,7 @@ def test_status_structured_msg(self, json_dumps_mock: MagicMock, _) -> None:
451451
)
452452
app_handle = runner.run(AppDef(app_id, roles=[role]), scheduler="local_dir")
453453
status = none_throws(runner.status(app_handle))
454-
self.assertEquals(resp.structured_error_msg, status.structured_error_msg)
454+
self.assertEqual(resp.structured_error_msg, status.structured_error_msg)
455455

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

torchx/runner/test/config_test.py

Lines changed: 1 addition & 1 deletion
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)