Skip to content

Commit 0dac02f

Browse files
largemouthyouknowone
authored andcommitted
chore: fix some typos in comment
Signed-off-by: largemouth <largemouth@aliyun.com>
1 parent c968fe0 commit 0dac02f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎extra_tests/snippets/builtin_list.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def bad_del_2():
326326
assert x == ["a", 2, 3, 4, 5]
327327
x[-1] = "b"
328328
assert x == ["a", 2, 3, 4, "b"]
329-
# make sure refrences are assigned correctly
329+
# make sure references are assigned correctly
330330
y = []
331331
x[1] = y
332332
y.append(100)
@@ -434,7 +434,7 @@ def set_index_out_of_bounds_low():
434434
y[2:8:1] = []
435435
assert x == [0, 1, 8, 9]
436436
assert x == y
437-
# make sure refrences are assigned correctly
437+
# make sure references are assigned correctly
438438
yy = []
439439
x = a[:]
440440
y = a[:]

‎extra_tests/snippets/stdlib_io_bytesio.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_04():
5050

5151
def test_05():
5252
"""
53-
Tests that the write method accpets bytearray
53+
Tests that the write method accepts bytearray
5454
"""
5555
bytes_string = b"Test String 5"
5656

‎extra_tests/snippets/stdlib_itertools.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
with assert_raises(TypeError):
5252
next(x)
5353

54-
# iterables are lazily evaluted
54+
# iterables are lazily evaluated
5555
x = chain.from_iterable(itertools.repeat(range(2)))
5656
assert next(x) == 0
5757
assert next(x) == 1

‎extra_tests/snippets/stdlib_sys.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def recursive_call(n):
113113
assert 0 <= winver.suite_mask <= all_masks
114114
assert 1 <= winver.product_type <= 3
115115

116-
# XXX if platform_version is implemented correctly, this'll break on compatiblity mode or a build without manifest
116+
# XXX if platform_version is implemented correctly, this'll break on compatibility mode or a build without manifest
117117
# these fields can mismatch in CPython
118118
assert winver.major == winver.platform_version[0]
119119
assert winver.minor == winver.platform_version[1]

0 commit comments

Comments
 (0)