https://github.com/python/cpython/commit/6393068bde5dbd12476585627a024ac160df6a2c
commit: 6393068bde5dbd12476585627a024ac160df6a2c
branch: main
author: AN Long <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-09-16T18:33:39+05:30
summary:
fix some typos (#138977)
files:
M InternalDocs/asyncio.md
M Lib/test/test_enum.py
M Lib/test/test_json/test_enum.py
M Modules/_zstd/compressor.c
diff --git a/InternalDocs/asyncio.md b/InternalDocs/asyncio.md
index 22159852ca54db..ca7e8a92dec1ce 100644
--- a/InternalDocs/asyncio.md
+++ b/InternalDocs/asyncio.md
@@ -205,7 +205,7 @@ the current task is found and returned. If no matching
thread state is
found, `None` is returned.
In free-threading, it avoids contention on a global dictionary as
-threads can access the current task of thier running loop without any
+threads can access the current task of their running loop without any
locking.
---
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py
index 2dd585f246d506..7e509be0994248 100644
--- a/Lib/test/test_enum.py
+++ b/Lib/test/test_enum.py
@@ -4887,7 +4887,7 @@ class Color(Enum):
def _generate_next_value_(name, start, count, last):
return name
- def test_auto_order_wierd(self):
+ def test_auto_order_weird(self):
weird_auto = auto()
weird_auto.value = 'pathological case'
class Color(Enum):
diff --git a/Lib/test/test_json/test_enum.py b/Lib/test/test_json/test_enum.py
index 10f414898b8935..196229897bd6e3 100644
--- a/Lib/test/test_json/test_enum.py
+++ b/Lib/test/test_json/test_enum.py
@@ -26,7 +26,7 @@ class FloatNum(float, Enum):
NEG_INF = float('-inf')
NAN = float('nan')
-class WierdNum(float, Enum):
+class WeirdNum(float, Enum):
inf = INF
neg_inf = NEG_INF
nan = NAN
@@ -40,7 +40,7 @@ def test_floats(self):
self.assertEqual(self.loads(self.dumps(enum)), enum)
def test_weird_floats(self):
- for enum, expected in zip(WierdNum, ('Infinity', '-Infinity', 'NaN')):
+ for enum, expected in zip(WeirdNum, ('Infinity', '-Infinity', 'NaN')):
self.assertEqual(self.dumps(enum), expected)
if not isnan(enum):
self.assertEqual(float(self.dumps(enum)), enum)
@@ -64,16 +64,16 @@ def test_list(self):
str([E, PI, TAU]))
self.assertEqual(self.loads(self.dumps(list(FloatNum))),
list(FloatNum))
- self.assertEqual(self.dumps(list(WierdNum)),
+ self.assertEqual(self.dumps(list(WeirdNum)),
'[Infinity, -Infinity, NaN]')
- self.assertEqual(self.loads(self.dumps(list(WierdNum)))[:2],
- list(WierdNum)[:2])
- self.assertTrue(isnan(self.loads(self.dumps(list(WierdNum)))[2]))
+ self.assertEqual(self.loads(self.dumps(list(WeirdNum)))[:2],
+ list(WeirdNum)[:2])
+ self.assertTrue(isnan(self.loads(self.dumps(list(WeirdNum)))[2]))
def test_dict_keys(self):
s, b, h, r = BigNum
e, p, t = FloatNum
- i, j, n = WierdNum
+ i, j, n = WeirdNum
d = {
s:'tiny', b:'large', h:'larger', r:'largest',
e:"Euler's number", p:'pi', t:'tau',
@@ -100,9 +100,9 @@ def test_dict_values(self):
e=FloatNum.e,
pi=FloatNum.pi,
tau=FloatNum.tau,
- i=WierdNum.inf,
- j=WierdNum.neg_inf,
- n=WierdNum.nan,
+ i=WeirdNum.inf,
+ j=WeirdNum.neg_inf,
+ n=WeirdNum.nan,
)
nd = self.loads(self.dumps(d))
self.assertEqual(nd['tiny'], SMALL)
diff --git a/Modules/_zstd/compressor.c b/Modules/_zstd/compressor.c
index 77cfd24050fb9d..029c07113d4f45 100644
--- a/Modules/_zstd/compressor.c
+++ b/Modules/_zstd/compressor.c
@@ -716,7 +716,7 @@
_zstd_ZstdCompressor_set_pledged_input_size_impl(ZstdCompressor *self,
unsigned long long size)
/*[clinic end generated code: output=3a09e55cc0e3b4f9 input=b4c87bcbd5ce6111]*/
{
- // Error occured while converting argument, should be unreachable
+ // Error occurred while converting argument, should be unreachable
assert(size != ZSTD_CONTENTSIZE_ERROR);
/* Thread-safe code */
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]