From d64618b16a86912dfa262bbfb0f89bba6f758bbe Mon Sep 17 00:00:00 2001 From: Michal Ambroz <723625+xambroz@users.noreply.github.com> Date: Fri, 3 Feb 2023 05:26:11 +0100 Subject: [PATCH] use assertTrue instead of deprecated failUnless --- lib/Crypto/SelfTest/PublicKey/test_ECC_448.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Crypto/SelfTest/PublicKey/test_ECC_448.py b/lib/Crypto/SelfTest/PublicKey/test_ECC_448.py index c0778df3d..178c3a90c 100644 --- a/lib/Crypto/SelfTest/PublicKey/test_ECC_448.py +++ b/lib/Crypto/SelfTest/PublicKey/test_ECC_448.py @@ -105,13 +105,13 @@ def test_equal(self): def test_pai(self): pai = EccPoint(0, 1, curve="Ed448") - self.failUnless(pai.is_point_at_infinity()) + self.assertTrue(pai.is_point_at_infinity()) self.assertEqual(pai, pai.point_at_infinity()) def test_negate(self): negG = -self.pointG sum = self.pointG + negG - self.failUnless(sum.is_point_at_infinity()) + self.assertTrue(sum.is_point_at_infinity()) def test_addition(self): self.assertEqual(self.pointG + self.pointG2, self.pointG3)