From ca9652ea5d1d9ebddd1acf6abbbf3751bc366a44 Mon Sep 17 00:00:00 2001 From: Meador Inge Date: Fri, 20 Jul 2012 12:48:34 -0500 Subject: Issue #15406: Fix deprecation warning in ctypes test_bitfields.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Flávio Ribeiro. --- Lib/ctypes/test/test_bitfields.py | 8 ++++---- Misc/ACKS | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Lib/ctypes/test/test_bitfields.py b/Lib/ctypes/test/test_bitfields.py index 28c8795..c89ee34 100644 --- a/Lib/ctypes/test/test_bitfields.py +++ b/Lib/ctypes/test/test_bitfields.py @@ -246,9 +246,9 @@ class BitFieldTest(unittest.TestCase): _fields_ = [("a", c_uint32, 32)] x = X() x.a = 10 - self.assertEquals(x.a, 10) + self.assertEqual(x.a, 10) x.a = 0xFDCBA987 - self.assertEquals(x.a, 0xFDCBA987) + self.assertEqual(x.a, 0xFDCBA987) @unittest.skipUnless(hasattr(ctypes, "c_uint64"), "c_int64 is required") def test_uint64(self): @@ -256,9 +256,9 @@ class BitFieldTest(unittest.TestCase): _fields_ = [("a", c_uint64, 64)] x = X() x.a = 10 - self.assertEquals(x.a, 10) + self.assertEqual(x.a, 10) x.a = 0xFEDCBA9876543211 - self.assertEquals(x.a, 0xFEDCBA9876543211) + self.assertEqual(x.a, 0xFEDCBA9876543211) if __name__ == "__main__": unittest.main() diff --git a/Misc/ACKS b/Misc/ACKS index 16847be..95c06ba 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -778,6 +778,7 @@ Michael P. Reilly Bernhard Reiter Steven Reiz Roeland Rengelink +Flávio Ribeiro Tim Rice Francesco Ricciardi Jan Pieter Riegel -- cgit v0.12