diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 10:34:31 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 10:34:31 (GMT) |
commit | c2077b0d9b5bf99768c6f396bf7ae6c41b682465 (patch) | |
tree | 8a1dc9e646a99465f4f1c9961012d52ef183e653 /Lib/ctypes/test | |
parent | 6905de14fef619767693f8bd91996bc7e99ca9fe (diff) | |
download | cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.zip cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.tar.gz cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.tar.bz2 |
#11565: Fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r-- | Lib/ctypes/test/test_arrays.py | 2 | ||||
-rw-r--r-- | Lib/ctypes/test/test_init.py | 2 | ||||
-rw-r--r-- | Lib/ctypes/test/test_numbers.py | 2 | ||||
-rw-r--r-- | Lib/ctypes/test/test_win32.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Lib/ctypes/test/test_arrays.py b/Lib/ctypes/test/test_arrays.py index 433a1ff..925f8bf 100644 --- a/Lib/ctypes/test/test_arrays.py +++ b/Lib/ctypes/test/test_arrays.py @@ -37,7 +37,7 @@ class ArrayTestCase(unittest.TestCase): values = [ia[i] for i in range(len(init))] self.assertEqual(values, [0] * len(init)) - # Too many in itializers should be caught + # Too many initializers should be caught self.assertRaises(IndexError, int_array, *range(alen*2)) CharArray = ARRAY(c_char, 3) diff --git a/Lib/ctypes/test/test_init.py b/Lib/ctypes/test/test_init.py index 953a145..82bd1f9 100644 --- a/Lib/ctypes/test/test_init.py +++ b/Lib/ctypes/test/test_init.py @@ -27,7 +27,7 @@ class InitTest(unittest.TestCase): self.assertEqual((y.x.a, y.x.b), (0, 0)) self.assertEqual(y.x.new_was_called, False) - # But explicitely creating an X structure calls __new__ and __init__, of course. + # But explicitly creating an X structure calls __new__ and __init__, of course. x = X() self.assertEqual((x.a, x.b), (9, 12)) self.assertEqual(x.new_was_called, True) diff --git a/Lib/ctypes/test/test_numbers.py b/Lib/ctypes/test/test_numbers.py index b5185bf..2267693 100644 --- a/Lib/ctypes/test/test_numbers.py +++ b/Lib/ctypes/test/test_numbers.py @@ -157,7 +157,7 @@ class NumberTestCase(unittest.TestCase): def test_int_from_address(self): from array import array for t in signed_types + unsigned_types: - # the array module doesn't suppport all format codes + # the array module doesn't support all format codes # (no 'q' or 'Q') try: array(t._type_) diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py index 5dedd9f..2534a74 100644 --- a/Lib/ctypes/test/test_win32.py +++ b/Lib/ctypes/test/test_win32.py @@ -17,7 +17,7 @@ if sys.platform == "win32" and sizeof(c_void_p) == sizeof(c_int): # ValueError: Procedure probably called with not enough arguments (4 bytes missing) self.assertRaises(ValueError, IsWindow) - # This one should succeeed... + # This one should succeed... self.assertEqual(0, IsWindow(0)) # ValueError: Procedure probably called with too many arguments (8 bytes in excess) |