summaryrefslogtreecommitdiff
path: root/Lib/ctypes/test/test_byteswap.py
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2007-09-07 15:45:05 +0000
committerJeffrey Yasskin <jyasskin@gmail.com>2007-09-07 15:45:05 +0000
commit0fa08bd0276ae15a762a2135e7af8c0507d4cf15 (patch)
tree88037dca60de5de0731bc9c5b07cf4595bb7329f /Lib/ctypes/test/test_byteswap.py
parent07b7c2266a09d38becca3af716aa00f719b7dcc4 (diff)
downloadcpython-0fa08bd0276ae15a762a2135e7af8c0507d4cf15.tar.gz
Forgot to run the tests after making the places and msg argument keyword-only.
This fixes the tests that broke.
Diffstat (limited to 'Lib/ctypes/test/test_byteswap.py')
-rw-r--r--Lib/ctypes/test/test_byteswap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ctypes/test/test_byteswap.py b/Lib/ctypes/test/test_byteswap.py
index 9ef4da454b..342e18ee3f 100644
--- a/Lib/ctypes/test/test_byteswap.py
+++ b/Lib/ctypes/test/test_byteswap.py
@@ -114,12 +114,12 @@ class Test(unittest.TestCase):
s = c_float(math.pi)
self.failUnlessEqual(bin(struct.pack("f", math.pi)), bin(s))
# Hm, what's the precision of a float compared to a double?
- self.failUnlessAlmostEqual(s.value, math.pi, 6)
+ self.failUnlessAlmostEqual(s.value, math.pi, places=6)
s = c_float.__ctype_le__(math.pi)
- self.failUnlessAlmostEqual(s.value, math.pi, 6)
+ self.failUnlessAlmostEqual(s.value, math.pi, places=6)
self.failUnlessEqual(bin(struct.pack("<f", math.pi)), bin(s))
s = c_float.__ctype_be__(math.pi)
- self.failUnlessAlmostEqual(s.value, math.pi, 6)
+ self.failUnlessAlmostEqual(s.value, math.pi, places=6)
self.failUnlessEqual(bin(struct.pack(">f", math.pi)), bin(s))
def test_endian_double(self):