Merge pull request #2631 from hugovk/update-deprecated-unittest-aliases

Replace deprecated unittest alias
This commit is contained in:
Benoit Chesneau 2021-09-06 21:28:27 +02:00 committed by GitHub
commit ff58e0c6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ class SimpleTest(TestCase):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
self.assertEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.