summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2012-07-20 17:52:42 (GMT)
committerMeador Inge <meadori@gmail.com>2012-07-20 17:52:42 (GMT)
commitb17ad53e3933e873529e9a02ffe4e061dd90ef3d (patch)
tree92e3c524202e73f48c395e7e3cc74a25df7808fc /Lib
parentbe7e49fd820318509cd8b4dbde479c552f74ef62 (diff)
parentca9652ea5d1d9ebddd1acf6abbbf3751bc366a44 (diff)
downloadcpython-b17ad53e3933e873529e9a02ffe4e061dd90ef3d.zip
cpython-b17ad53e3933e873529e9a02ffe4e061dd90ef3d.tar.gz
cpython-b17ad53e3933e873529e9a02ffe4e061dd90ef3d.tar.bz2
Issue #15406: Fix deprecation warning in ctypes test_bitfields.py
Patch by Flávio Ribeiro.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_bitfields.py8
1 files changed, 4 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()