mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
typos fixed by Rob Hooft
This commit is contained in:
parent
7c014684c2
commit
a05e293a21
32 changed files with 41 additions and 41 deletions
|
@ -8,7 +8,7 @@ from test_support import verbose
|
|||
alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams',
|
||||
'newconfig', 'openport', 'queryparams', 'setparams']
|
||||
|
||||
# This is a very inobstrusive test for the existance of the al module and all it's
|
||||
# This is a very unobtrusive test for the existence of the al module and all it's
|
||||
# attributes. More comprehensive examples can be found in Demo/al
|
||||
|
||||
def main():
|
||||
|
|
|
@ -270,7 +270,7 @@ if int(-3.5) <> -3: raise TestFailed, 'int(-3.5)'
|
|||
# Different base:
|
||||
if int("10",16) <> 16L: raise TestFailed, 'int("10",16)'
|
||||
if int(u"10",16) <> 16L: raise TestFailed, 'int(u"10",16)'
|
||||
# Test conversion fron strings and various anomalies
|
||||
# Test conversion from strings and various anomalies
|
||||
L = [
|
||||
('0', 0),
|
||||
('1', 1),
|
||||
|
|
|
@ -10,7 +10,7 @@ cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED', 'PLAYI
|
|||
'ident', 'index', 'msftoframe', 'open', 'pnum', 'ptime']
|
||||
|
||||
|
||||
# This is a very inobstrusive test for the existance of the cd module and all it's
|
||||
# This is a very inobtrusive test for the existence of the cd module and all it's
|
||||
# attributes. More comprehensive examples can be found in Demo/cd and
|
||||
# require that you have a CD and a CD ROM drive
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ clattrs = ['ADDED_ALGORITHM_ERROR', 'ALAW', 'ALGORITHM_ID',
|
|||
'YUV422DC', 'YUV422HC', '__doc__', '__name__', 'cvt_type', 'error']
|
||||
|
||||
|
||||
# This is a very inobstrusive test for the existance of the cl
|
||||
# This is a very inobtrusive test for the existence of the cl
|
||||
# module and all it's attributes.
|
||||
|
||||
def main():
|
||||
|
|
|
@ -59,7 +59,7 @@ except KeyError:
|
|||
else:
|
||||
print 'fakename', fakename, 'did not except pwd.getpwnam()'
|
||||
|
||||
# Choose a non-existant uid.
|
||||
# Choose a non-existent uid.
|
||||
fakeuid = 4127
|
||||
while byuids.has_key(fakeuid):
|
||||
fakeuid = (fakeuid * 3) % 0x10000
|
||||
|
|
|
@ -115,7 +115,7 @@ def DeleteTestData(root_key):
|
|||
# Opening should now fail!
|
||||
try:
|
||||
key = OpenKey(root_key, test_key_name)
|
||||
assert 0, "Could open the non-existant key"
|
||||
assert 0, "Could open the non-existent key"
|
||||
except WindowsError: # Use this error name this time
|
||||
pass
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ except ImportError:
|
|||
buf = file.read() * 8
|
||||
file.close()
|
||||
|
||||
# test the chucksums (hex so the test doesn't break on 64-bit machines)
|
||||
# test the checksums (hex so the test doesn't break on 64-bit machines)
|
||||
print hex(zlib.crc32('penguin')), hex(zlib.crc32('penguin', 1))
|
||||
print hex(zlib.adler32('penguin')), hex(zlib.adler32('penguin', 1))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue