Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/imaplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ def _pop(self, timeout, default=('', None)):
# Historical Note:
# The timeout was originally implemented using select() after
# checking for the presence of already-buffered data.
# That allowed timeouts on pipe connetions like IMAP4_stream.
# That allowed timeouts on pipe connections like IMAP4_stream.
# However, it seemed possible that SSL data arriving without any
# IMAP data afterward could cause select() to indicate available
# application data when there was none, leading to a read() call
Expand Down
2 changes: 1 addition & 1 deletion Lib/multiprocessing/resource_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _reentrant_call_error(self):
"Reentrant call into the multiprocessing resource tracker")

def __del__(self):
# making sure child processess are cleaned before ResourceTracker
# making sure child processes are cleaned before ResourceTracker
# gets destructed.
# see https://github.com/python/cpython/issues/88887
self._stop(use_blocking_lock=False)
Expand Down
2 changes: 1 addition & 1 deletion Lib/sysconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _get_sysconfigdata():


def _installation_is_relocated():
"""Is the Python installation running from a different prefix than what was targetted when building?"""
"""Is the Python installation running from a different prefix than what was targeted when building?"""
if os.name != 'posix':
raise NotImplementedError('sysconfig._installation_is_relocated() is currently only supported on POSIX')

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_asyncio/test_sslproto.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_connection_lost_when_busy(self):
sock.fileno = mock.Mock(return_value=12345)
sock.send = mock.Mock(side_effect=BrokenPipeError)

# construct StreamWriter chain that contains loop dependant logic this emulates
# construct StreamWriter chain that contains loop dependent logic this emulates
# what _make_ssl_transport() does in BaseSelectorEventLoop
reader = asyncio.StreamReader(limit=2 ** 16, loop=self.loop)
protocol = asyncio.StreamReaderProtocol(reader, loop=self.loop)
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_build_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def contents(self):
def test_location(self):
self.assertTrue(os.path.isfile(self.location))

# Override generic format tests with tests for our specific implemenation.
# Override generic format tests with tests for our specific implementation.

@needs_installed_python
@unittest.skipIf(is_android or is_apple_mobile, 'Android and iOS run tests via a custom testbed method that changes sys.executable')
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test__tuple_resize(self):
def test_bug_59313(self):
# Before 3.14, the C-API function PySequence_Tuple
# would create incomplete tuples which were visible to
# the cycle GC, and this test would crash the interpeter.
# the cycle GC, and this test would crash the interpreter.
TAG = object()
tuples = []

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class FreezeThis(metaclass=Meta):
self.assertEqual(FreezeThis.value, 2)

def test_manual_heap_type(self):
# gh-128923: test that a manually allocated and initailized heap type
# gh-128923: test that a manually allocated and initialized heap type
# works correctly
ManualHeapType = _testcapi.ManualHeapType
for i in range(100):
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,7 @@ def __getattr__(self, attribute):
return getattr(queue, attribute)

class CustomQueueFakeProtocol(CustomQueueProtocol):
# An object implementing the minimial Queue API for
# An object implementing the minimal Queue API for
# the logging module but with incorrect signatures.
#
# The object will be considered a valid queue class since we
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_opcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def test(default=None):
def make_deferred_ref_count_obj():
"""Create an object that uses deferred reference counting.

Only objects that use deferred refence counting may be stored in inline
Only objects that use deferred reference counting may be stored in inline
caches in free-threaded builds. This constructs a new class named Foo,
which uses deferred reference counting.
"""
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ def test_import_completions(self):
# Make iter_modules() search only the standard library.
# This makes the test more reliable in case there are
# other user packages/scripts on PYTHONPATH which can
# intefere with the completions.
# interfere with the completions.
lib_path = os.path.dirname(importlib.__path__[0])
sys.path = [lib_path]

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def test_sysconfigdata_json(self):

# Keys dependent on uncontrollable external context
ignore_keys = {'userbase'}
# Keys dependent on Python being run outside the build directrory
# Keys dependent on Python being run outside the build directory
if sysconfig.is_python_build():
ignore_keys |= {'srcdir'}
# Keys dependent on the executable location
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_xml_etree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ def test_remove_with_clear_assume_existing(self):

def do_test_remove_with_clear(self, *, raises):

# Until the discrepency between "del root[:]" and "root.clear()" is
# Until the discrepancy between "del root[:]" and "root.clear()" is
# resolved, we need to keep two tests. Previously, using "del root[:]"
# did not crash with the reproducer of gh-126033 while "root.clear()"
# did.
Expand Down
Loading