mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
pytests: heed assertEquals deprecation warning en-masse
TestCase.assertEquals() is an alias for TestCase.assertEqual() and has been deprecated since Python 2.7. When we run our tests with in python developer mode (`PYTHONDEVMODE=1 make test`) we get 580 DeprecationWarnings about this. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
committed by
Noel Power
parent
3bc7acc626
commit
c247afbda0
@ -26,9 +26,9 @@ from samba import policy
|
||||
class PolicyTests(TestCase):
|
||||
|
||||
def test_get_gpo_flags(self):
|
||||
self.assertEquals(["GPO_FLAG_USER_DISABLE"],
|
||||
self.assertEqual(["GPO_FLAG_USER_DISABLE"],
|
||||
policy.get_gpo_flags(policy.GPO_FLAG_USER_DISABLE))
|
||||
|
||||
def test_get_gplink_options(self):
|
||||
self.assertEquals(["GPLINK_OPT_DISABLE"],
|
||||
self.assertEqual(["GPLINK_OPT_DISABLE"],
|
||||
policy.get_gplink_options(policy.GPLINK_OPT_DISABLE))
|
||||
|
Reference in New Issue
Block a user