Skip to content

Commit 317f5d7

Browse files
committed
Leave MP tests as-is
1 parent 7e6b055 commit 317f5d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4
-47
lines changed

tests/cpydiff/builtin_next_arg2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
except StopIteration:
1010
val = deflt
1111
"""
12-
1312
print(next(iter(range(0)), 42))

tests/cpydiff/core_class_delnotimpl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: Unknown
55
workaround: Unknown
66
"""
7-
87
import gc
98

109

tests/cpydiff/core_function_argcount.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: MicroPython counts "self" as an argument.
55
workaround: Interpret error messages with the information above in mind.
66
"""
7-
87
try:
98
[].append()
109
except Exception as e:

tests/cpydiff/core_import_all.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: Not implemented.
55
workaround: Manually import the sub-modules directly in __init__.py using ``from . import foo, bar``.
66
"""
7-
87
from modules3 import *
98

109
foo.hello()

tests/cpydiff/core_import_path.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: MicroPython doesn't support namespace packages split across filesystem. Beyond that, MicroPython's import system is highly optimized for minimal memory usage.
55
workaround: Details of import handling is inherently implementation dependent. Don't rely on such details in portable applications.
66
"""
7-
87
import modules
98

109
print(modules.__path__)

tests/cpydiff/core_import_split_ns_pkgs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: MicroPython's import system is highly optimized for simplicity, minimal memory usage, and minimal filesystem search overhead.
55
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).
66
"""
7-
87
import sys
98

109
sys.path.append(sys.path[1] + "/modules")

tests/cpydiff/core_locals_eval.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: MicroPython doesn't maintain symbolic local environment, it is optimized to an array of slots. Thus, local variables can't be accessed by a name. Effectively, ``eval(expr)`` in MicroPython is equivalent to ``eval(expr, globals(), globals())``.
55
workaround: Unknown
66
"""
7-
87
val = 1
98

109

tests/cpydiff/module_array_comparison.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: Code size
55
workaround: Compare individual elements
66
"""
7-
87
import array
98

109
array.array("b", [1, 2]) == array.array("i", [1, 2])

tests/cpydiff/module_array_constructor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: MicroPython implements implicit truncation in order to reduce code size and execution time
55
workaround: If CPython compatibility is needed then mask the value explicitly
66
"""
7-
87
import array
98

109
a = array.array("b", [257])

tests/cpydiff/modules_array_containment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
cause: Unknown
55
workaround: Unknown
66
"""
7-
87
import array
98

109
print(1 in array.array("B", b"12"))

0 commit comments

Comments
 (0)