8000 chore: fix some typos in comments (#5243) · RustPython/RustPython@41979f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 41979f0

Browse files
authored
chore: fix some typos in comments (#5243)
Signed-off-by: toofooboo <cmaker@foxmail.com>
1 parent 192b0a8 commit 41979f0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Lib/test/test_exception_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def leaf_generator(exc, tbs=None):
507507

508508
class LeafGeneratorTest(unittest.TestCase):
509509
# The leaf_generator is mentioned in PEP 654 as a suggestion
510-
# on how to iterate over leaf nodes of an EG. Is is also
510+
# on how to iterate over leaf nodes of an EG. It is also
511511
# used below as a test utility. So we test it here.
512512

513513
# TODO: RUSTPYTHON

extra_tests/custom_text_test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def startTestRun(self):
217217
self.suite_map = {}
218218

219219
def stopTestRun(self):
220-
# if no tests or some failure occured execution time may not have been set
220+
# if no tests or some failure occurred execution time may not have been set
221221
try:
222222
self.results['suites'][self.suite_map[self.suite]]['execution_time'] = format(self.suite_execution_time, '.%sf' %CustomTextTestResult._execution_time_significant_digits)
223223
except:

extra_tests/snippets/builtin_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def __eq__(self, other):
657657
l.remove(4)
658658
assert_raises(ValueError, lambda: l.index(4)) # element 4 must not be in the list
659659

660-
# Test no panic occured when list elements was deleted in __eq__
660+
# Test no panic occurred when list elements was deleted in __eq__
661661
class rewrite_list_eq(list):
662662
pass
663663

extra_tests/snippets/stdlib_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_array_frombytes():
101101

102102
test_str = '🌉abc🌐def🌉🌐'
103103
u = array('u', test_str)
104-
# skip as 2 bytes character enviroment with CPython is failing the test
104+
# skip as 2 bytes character environment with CPython is failing the test
105105
if u.itemsize >= 4:
106106
assert u.__reduce_ex__(1)[1][1] == list(test_str)
107107
assert loads(dumps(u, 1)) == loads(dumps(u, 3))

extra_tests/snippets/syntax_comprehension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343

4444

4545
def f():
46-
# Test no panic occured.
46+
# Test no panic occurred.
4747
[[x := 1 for j in range(5)] for i in range(5)]

0 commit comments

Comments
 (0)
0