Skip to content

Fix usage of deprecated unittest APIs#717

Merged
slozier merged 1 commit intoIronLanguages:masterfrom
in-code-i-trust:714-fix-deprecated-unittest-apis
Jan 6, 2020
Merged

Fix usage of deprecated unittest APIs#717
slozier merged 1 commit intoIronLanguages:masterfrom
in-code-i-trust:714-fix-deprecated-unittest-apis

Conversation

@in-code-i-trust
Copy link
Copy Markdown
Contributor

Hi,
I wrote a patch to resolve #714.
I looked around Tests/**.py and replaced deprecated API aliases as described in the unittest documentation.

Here are some descriptions of the changes:

  • Replaced assertEquals() to assertEqual()
  • Replaced assertNotEquals() to assertNotEqual()
  • Replaced assertRaisesRegexp() to assertRaisesRegex()

This resolves IronLanguages#714

Replace assertEquals() to assertEqual()

Replace assertNotEquals() to assertNotEqual()

Replace assertRaisesRegexp() to assertRaisesRegex()
@dnfclas
Copy link
Copy Markdown

dnfclas commented Jan 6, 2020

CLA assistant check
All CLA requirements met.

Copy link
Copy Markdown
Contributor

@slozier slozier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for the PR!

@slozier slozier merged commit 8c309aa into IronLanguages:master Jan 6, 2020
@in-code-i-trust in-code-i-trust deleted the 714-fix-deprecated-unittest-apis branch January 6, 2020 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix usage of deprecated unittest APIs

3 participants