Skip to content
Merged
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 InternalDocs/asyncio.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
20 changes: 10 additions & 10 deletions Lib/test/test_json/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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',
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Modules/_zstd/compressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Loading