Skip to content

Commit f00a0fc

Browse files
Progress
1 parent 5db6cc2 commit f00a0fc

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

Lib/test/test_asyncio/test_sslproto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_connection_lost_when_busy(self):
116116
sock.fileno = mock.Mock(return_value=12345)
117117
sock.send = mock.Mock(side_effect=BrokenPipeError)
118118

119-
# construct StreamWriter chain that contains loop dependant logic this emulates
119+
# construct StreamWriter chain that contains loop dependent logic this emulates
120120
# what _make_ssl_transport() does in BaseSelectorEventLoop
121121
reader = asyncio.StreamReader(limit=2 ** 16, loop=self.loop)
122122
protocol = asyncio.StreamReaderProtocol(reader, loop=self.loop)

Lib/test/test_buffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4456,7 +4456,7 @@ def test_pybuffer_size_from_format(self):
44564456

44574457
@support.cpython_only
44584458
def test_flags_overflow(self):
4459-
# gh-126594: Check for integer overlow on large flags
4459+
# gh-126594: Check for integer overflow on large flags
44604460
try:
44614461
from _testcapi import INT_MIN, INT_MAX
44624462
except ImportError:

Lib/test/test_build_details.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class FormatTestsBase:
1212
@property
1313
def contents(self):
14-
"""Install details file contents. Should be overriden by subclasses."""
14+
"""Install details file contents. Should be overridden by subclasses."""
1515
raise NotImplementedError
1616

1717
@property
@@ -114,7 +114,7 @@ def contents(self):
114114
def test_location(self):
115115
self.assertTrue(os.path.isfile(self.location))
116116

117-
# Override generic format tests with tests for our specific implemenation.
117+
# Override generic format tests with tests for our specific implementation.
118118

119119
@needs_installed_python
120120
@unittest.skipIf(

Lib/test/test_capi/test_tuple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def test__tuple_resize(self):
259259
def test_bug_59313(self):
260260
# Before 3.14, the C-API function PySequence_Tuple
261261
# would create incomplete tuples which were visible to
262-
# the cycle GC, and this test would crash the interpeter.
262+
# the cycle GC, and this test would crash the interpreter.
263263
TAG = object()
264264
tuples = []
265265

Lib/test/test_capi/test_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class FreezeThis(metaclass=Meta):
259259
self.assertEqual(FreezeThis.value, 2)
260260

261261
def test_manual_heap_type(self):
262-
# gh-128923: test that a manually allocated and initailized heap type
262+
# gh-128923: test that a manually allocated and initialized heap type
263263
# works correctly
264264
ManualHeapType = _testcapi.ManualHeapType
265265
for i in range(100):

Lib/test/test_cmd_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ def test_python_legacy_windows_fs_encoding(self):
980980
def test_python_legacy_windows_stdio(self):
981981
# Test that _WindowsConsoleIO is used when PYTHONLEGACYWINDOWSSTDIO
982982
# is not set.
983-
# We cannot use PIPE becase it prevents creating new console.
983+
# We cannot use PIPE because it prevents creating new console.
984984
# So we use exit code.
985985
code = "import sys; sys.exit(type(sys.stdout.buffer.raw).__name__ != '_WindowsConsoleIO')"
986986
env = os.environ.copy()

Lib/test/test_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ def check_unhashable_key():
15811581
with check_unhashable_key():
15821582
d.get(key)
15831583

1584-
# Only TypeError exception is overriden,
1584+
# Only TypeError exception is overridden,
15851585
# other exceptions are left unchanged.
15861586
class HashError:
15871587
def __hash__(self):

Lib/test/test_dis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ def jumpy():
16961696
# code_object_inner before rerunning the tests
16971697

16981698
def _stringify_instruction(instr):
1699-
# Since postions offsets change a lot for these test cases, ignore them.
1699+
# Since positions offsets change a lot for these test cases, ignore them.
17001700
base = (
17011701
f" make_inst(opname={instr.opname!r}, arg={instr.arg!r}, argval={instr.argval!r}, " +
17021702
f"argrepr={instr.argrepr!r}, offset={instr.offset}, start_offset={instr.start_offset}, " +

Lib/test/test_fileio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def check_readall(name, code, prelude="", cleanup="",
388388
syscalls = strace_helper.filter_memory(syscalls)
389389

390390
# The first call should be an open that returns a
391-
# file descriptor (fd). Afer that calls may vary. Once the file
391+
# file descriptor (fd). After that calls may vary. Once the file
392392
# is opened, check calls refer to it by fd as the filename
393393
# could be removed from the filesystem, renamed, etc. See:
394394
# Time-of-check time-of-use (TOCTOU) software bug class.

Lib/test/test_generators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,7 +2377,7 @@ def printsolution(self, x):
23772377
"""
23782378

23792379
weakref_tests = """\
2380-
Generators are weakly referencable:
2380+
Generators are weakly referenceable:
23812381
23822382
>>> import weakref
23832383
>>> def gen():
@@ -2388,7 +2388,7 @@ def printsolution(self, x):
23882388
True
23892389
>>> p = weakref.proxy(gen)
23902390
2391-
Generator-iterators are weakly referencable as well:
2391+
Generator-iterators are weakly referenceable as well:
23922392
23932393
>>> gi = gen()
23942394
>>> wr = weakref.ref(gi)

0 commit comments

Comments
 (0)