summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-03-08 14:10:02 +1100
committerDamien George <damien@micropython.org>2023-04-27 18:03:06 +1000
commitb1229efbd1509654dec6053865ab828d769e29db (patch)
treee1a65606dd1f0a8cfe2af08f9c4ff821fb575b02 /tests
parente160fe7bc64212a3ce56f5478f208e2b4d343a8b (diff)
all: Fix spelling mistakes based on codespell check.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/annotate_var.py2
-rw-r--r--tests/basics/int_big1.py2
-rw-r--r--tests/basics/struct1.py2
-rw-r--r--tests/basics/with_return.py4
-rw-r--r--tests/cpydiff/core_fstring_repr.py2
-rw-r--r--tests/cpydiff/core_import_path.py2
-rw-r--r--tests/cpydiff/core_import_split_ns_pkgs.py2
-rw-r--r--tests/extmod/framebuf_palette.py2
-rw-r--r--tests/extmod/uctypes_sizeof_layout.py2
-rw-r--r--tests/extmod/utimeq1.py2
-rw-r--r--tests/feature_check/README2
-rw-r--r--tests/misc/non_compliant.py2
-rw-r--r--tests/net_hosted/README2
-rw-r--r--tests/net_inet/README2
-rw-r--r--tests/thread/thread_lock1.py2
-rw-r--r--tests/wipy/uart.py2
16 files changed, 17 insertions, 17 deletions
diff --git a/tests/basics/annotate_var.py b/tests/basics/annotate_var.py
index 3f767e4a7..a359b229b 100644
--- a/tests/basics/annotate_var.py
+++ b/tests/basics/annotate_var.py
@@ -1,4 +1,4 @@
-# test PEP 526, varible annotations
+# test PEP 526, variable annotations
x: int
print("x" in globals())
diff --git a/tests/basics/int_big1.py b/tests/basics/int_big1.py
index 108e3ee5c..5b35e3db4 100644
--- a/tests/basics/int_big1.py
+++ b/tests/basics/int_big1.py
@@ -1,4 +1,4 @@
-# to test arbitrariy precision integers
+# to test arbitrary precision integers
x = 1000000000000000000000000000000
xn = -1000000000000000000000000000000
diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py
index db34342a1..c4960d2f8 100644
--- a/tests/basics/struct1.py
+++ b/tests/basics/struct1.py
@@ -57,7 +57,7 @@ try:
except:
print("Unknown type")
-# Initially repitition counters were supported only for strings,
+# Initially repetition counters were supported only for strings,
# but later were implemented for all.
print(struct.unpack("<3B2h", b"foo\x12\x34\xff\xff"))
print(struct.pack("<3B", 1, 2, 3))
diff --git a/tests/basics/with_return.py b/tests/basics/with_return.py
index fd848f133..f2083d2ae 100644
--- a/tests/basics/with_return.py
+++ b/tests/basics/with_return.py
@@ -30,7 +30,7 @@ def f():
return (i, j)
print(f())
-# multiple for loops within nested withs
+# multiple for loops within nested with's
def f():
with CtxMgr(1):
for i in [1, 2]:
@@ -41,7 +41,7 @@ def f():
return (i, j, k, l)
print(f())
-# multiple for loops that are optimised, and nested withs
+# multiple for loops that are optimised, and nested with's
def f():
with CtxMgr(1):
for i in range(1, 3):
diff --git a/tests/cpydiff/core_fstring_repr.py b/tests/cpydiff/core_fstring_repr.py
index fcadcbf1b..df80abf79 100644
--- a/tests/cpydiff/core_fstring_repr.py
+++ b/tests/cpydiff/core_fstring_repr.py
@@ -2,7 +2,7 @@
categories: Core
description: f-strings don't support the !r, !s, and !a conversions
cause: MicroPython is optimised for code space.
-workaround: Use repr(), str(), and ascii() explictly.
+workaround: Use repr(), str(), and ascii() explicitly.
"""
diff --git a/tests/cpydiff/core_import_path.py b/tests/cpydiff/core_import_path.py
index 04fc4bd5b..959fd571f 100644
--- a/tests/cpydiff/core_import_path.py
+++ b/tests/cpydiff/core_import_path.py
@@ -1,7 +1,7 @@
"""
categories: Core,import
description: __path__ attribute of a package has a different type (single string instead of list of strings) in MicroPython
-cause: MicroPython does't support namespace packages split across filesystem. Beyond that, MicroPython's import system is highly optimized for minimal memory usage.
+cause: MicroPython doesn't support namespace packages split across filesystem. Beyond that, MicroPython's import system is highly optimized for minimal memory usage.
workaround: Details of import handling is inherently implementation dependent. Don't rely on such details in portable applications.
"""
import modules
diff --git a/tests/cpydiff/core_import_split_ns_pkgs.py b/tests/cpydiff/core_import_split_ns_pkgs.py
index 62bf337a2..5c92b6312 100644
--- a/tests/cpydiff/core_import_split_ns_pkgs.py
+++ b/tests/cpydiff/core_import_split_ns_pkgs.py
@@ -1,6 +1,6 @@
"""
categories: Core,import
-description: MicroPython does't support namespace packages split across filesystem.
+description: MicroPython doesn't support namespace packages split across filesystem.
cause: MicroPython's import system is highly optimized for simplicity, minimal memory usage, and minimal filesystem search overhead.
workaround: Don't install modules belonging to the same namespace package in different directories. For MicroPython, it's recommended to have at most 3-component module search paths: for your current application, per-user (writable), system-wide (non-writable).
"""
diff --git a/tests/extmod/framebuf_palette.py b/tests/extmod/framebuf_palette.py
index 84db834c1..f5b15fda7 100644
--- a/tests/extmod/framebuf_palette.py
+++ b/tests/extmod/framebuf_palette.py
@@ -30,6 +30,6 @@ fbd.blit(fbc, 0, 0, -1, palette)
print(fbd.pixel(0, 0) == fg)
print(fbd.pixel(7, 7) == fg)
-print(fbd.pixel(8, 8) == 0) # Ouside blit
+print(fbd.pixel(8, 8) == 0) # Outside blit
print(fbd.pixel(0, 1) == bg)
print(fbd.pixel(1, 0) == bg)
diff --git a/tests/extmod/uctypes_sizeof_layout.py b/tests/extmod/uctypes_sizeof_layout.py
index 2108e8150..c710ecde9 100644
--- a/tests/extmod/uctypes_sizeof_layout.py
+++ b/tests/extmod/uctypes_sizeof_layout.py
@@ -13,7 +13,7 @@ desc = {
# uctypes.NATIVE is default
print(uctypes.sizeof(desc) == uctypes.sizeof(desc, uctypes.NATIVE))
-# Here we assume that that we run on a platform with convential ABI
+# Here we assume that that we run on a platform with conventional ABI
# (which rounds up structure size based on max alignment). For platforms
# where that doesn't hold, this tests should be just disabled in the runner.
print(uctypes.sizeof(desc, uctypes.NATIVE) > uctypes.sizeof(desc, uctypes.LITTLE_ENDIAN))
diff --git a/tests/extmod/utimeq1.py b/tests/extmod/utimeq1.py
index ddbc969af..688e5b834 100644
--- a/tests/extmod/utimeq1.py
+++ b/tests/extmod/utimeq1.py
@@ -125,7 +125,7 @@ assert edge_case(MODULO_HALF - 1, -100) == diff
# We expect diff to be always positive, per the definition of heappop() which should return
# the smallest value.
-# This is the edge case where this invariant breaks, due to assymetry of two's-complement
+# This is the edge case where this invariant breaks, due to asymmetry of two's-complement
# range - there's one more negative integer than positive, so heappushing values like below
# will then make ticks_diff() return the minimum negative value. We could make heappop
# return them in a different order, but ticks_diff() result would be the same. Conclusion:
diff --git a/tests/feature_check/README b/tests/feature_check/README
index 3b7b6cba4..3f4804cfc 100644
--- a/tests/feature_check/README
+++ b/tests/feature_check/README
@@ -1,4 +1,4 @@
This directory doesn't contain real tests, but code snippets to detect
-various interpreter features, which can't be/inconvenient to detecte by
+various interpreter features, which can't be/inconvenient to detect by
other means. Scripts here are executed by run-tests.py at the beginning of
testsuite to decide what other test groups to run/exclude.
diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py
index 083927446..cc63185b5 100644
--- a/tests/misc/non_compliant.py
+++ b/tests/misc/non_compliant.py
@@ -39,7 +39,7 @@ try:
except NotImplementedError:
print("NotImplementedError")
-# uPy raises TypeError, shold be ValueError
+# uPy raises TypeError, should be ValueError
try:
"%c" % b"\x01\x02"
except (TypeError, ValueError):
diff --git a/tests/net_hosted/README b/tests/net_hosted/README
index 709ed50ce..887e430e2 100644
--- a/tests/net_hosted/README
+++ b/tests/net_hosted/README
@@ -6,6 +6,6 @@ Note that setup for these tests and tests themselves are WIP, and may
not yet fully correspond to the functional specification above.
So far, these tests are not run as part of the main testsuite and need
-to be run seperately (from the main test/ directory):
+to be run separately (from the main test/ directory):
./run-tests.py net_hosted/*.py
diff --git a/tests/net_inet/README b/tests/net_inet/README
index 1d6e15b17..e5e05845f 100644
--- a/tests/net_inet/README
+++ b/tests/net_inet/README
@@ -1,5 +1,5 @@
This directory contains network tests which require Internet connection.
Note that these tests are not run as part of the main testsuite and need
-to be run seperately (from the main test/ directory):
+to be run separately (from the main test/ directory):
./run-tests.py net_inet/*.py
diff --git a/tests/thread/thread_lock1.py b/tests/thread/thread_lock1.py
index 342c554f4..1d0701da0 100644
--- a/tests/thread/thread_lock1.py
+++ b/tests/thread/thread_lock1.py
@@ -30,7 +30,7 @@ print(lock.locked())
with lock:
print(lock.locked())
-# test that lock is unlocked if an error is rasied
+# test that lock is unlocked if an error is raised
try:
with lock:
print(lock.locked())
diff --git a/tests/wipy/uart.py b/tests/wipy/uart.py
index 9498d9554..94ac9051b 100644
--- a/tests/wipy/uart.py
+++ b/tests/wipy/uart.py
@@ -156,7 +156,7 @@ except Exception:
for uart_id in uart_id_range:
uart = UART(uart_id, 1000000)
uart.deinit()
- # test printing an unitialized uart
+ # test printing an uninitialized uart
print(uart)
# initialize it back and check that it works again
uart.init(115200)