Skip to content

Cleanup: Replace deprecated unittest.assertEquals with assertEqual #37540

Description

@Vaishnav88sk

What should be cleaned up or changed:
The tests in gubernator/view_pr_test.py are using self.assertEquals(). The assertEquals method has been deprecated in Python's unittest module since Python 3.2. We should pay down this technical debt and use self.assertEqual() instead to avoid deprecation warnings and ensure long-term compatibility.

Provide any links for context:
The deprecated method is currently used in these locations:

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.sig/testingCategorizes an issue or PR as relevant to SIG Testing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions