Damien George
a3c89cf907
tests/cpydiff: Add CPy diff test for assignment expression behaviour.
4 years ago
Jim Mussared
309c19d39b
tests/cpydiff: Add cpydiff test for __all__ used in imported package.
5 years ago
David Lechner
3dc324d3f1
tests: Format all Python code with black, except tests in basics subdir.
This adds the Python files in the tests/ directory to be formatted with
./tools/codeformat.py. The basics/ subdirectory is excluded for now so we
aren't changing too much at once.
In a few places `# fmt: off`/`# fmt: on` was used where the code had
special formatting for readability or where the test was actually testing
the specific formatting.
5 years ago
Damien George
69b415f745
tests: Move CPy diff test to real test now that subclass equality works.
Testing for equality of subclassed strings now works, thanks to commit
3aab54bf43
5 years ago
David Lechner
74106757ac
tests/cpydiff: Add os module environ differences.
5 years ago
Damien George
4d528bbaa8
tests/cpydiff: Add CPy diff-test for using dict.keys() as a set.
See issue #5493 .
5 years ago
clach04
ffd11486d4
tests/cpydiff: Fix typo in types_bytes_keywords.py doc comments.
5 years ago
Paul Sokolovsky
8181ec04a4
tests/cpydiff: Add case for difference in behaviour of bytes.format().
6 years ago
Damien George
2ada1124d4
tests/cpydiff: Remove types_int_tobytesfloat now that it doesn't fail.
Commit e269cabe3e
added a check that the
first argument to the to_bytes() method is an integer, and now uPy
follows CPython behaviour and raises a TypeError for this test.
Note: CPython checks the argument types before checking the number of
arguments, but uPy does it the other way around, so they give different
exception messages for this test, but still the same type, a TypeError.
7 years ago
Damien George
74ab341d3a
tests/cpydiff: Remove working cases from types_float_rounding.
7 years ago
Damien George
cd9d71edc8
tests/cpydiff: Remove types_str_decodeerror now that it succeeds.
Commit 68c28174d0
implemented checking for
valid utf-8 data.
7 years ago
Damien George
4b5111f8e1
tests/cpydiff: Remove core_function_unpacking now that it succeeds.
Commit 1e70fda69f
fixes this difference.
7 years ago
Damien George
c926e72750
tests/cpydiff: Indent workaround code snippet so it formats correctly.
7 years ago
Damien George
e4e3f0d727
tests/cpydiff: Update subclassing Exception case and give work-around.
7 years ago
Paul Sokolovsky
3c483842db
tests/cpydiff: Fix markup where "`" (xref) was used instead of "``" (code).
7 years ago
Damien George
63f47104fe
tests/cpydiff: Add difference-test for second arg of builtin next().
7 years ago
Paul Sokolovsky
75163325ae
tests/cpydiff: Add cases for locals() discrepancies.
MicroPython doesn't maintain local symbolic environment, so any feature
depending on it won't work as expected.
7 years ago
Paul Sokolovsky
ad3abcd324
tests/cpydiff: Add case for str.ljust/rjust.
7 years ago
Paul Sokolovsky
0c5369a1f0
tests/cpydiff/: Improve wording, add more workarounds.
7 years ago
Paul Sokolovsky
5f65ad8c96
tests/cpydiff/core_class_supermultiple: Same cause as core_class_mro.
7 years ago
Paul Sokolovsky
c5efb8159f
tests/cpydiff/core_arguments: Move under Functions subsection.
This is the last "orphan" case.
7 years ago
Paul Sokolovsky
b2979023ac
tests/cpydiff/core_class_mro: Move under Classes, add workaround.
7 years ago
Paul Sokolovsky
ed52955c6b
tests/cpydiff/modules_deque: Elaborate workaround.
7 years ago
Damien George
084824f866
tests: Move super-as-local test from cpydiff to basic tests.
It's now possible to use the name "super" as a local variable.
8 years ago
Paul Sokolovsky
12ea06567c
tests/cpydiff/core_function_unpacking: Fill in workaround.
8 years ago
Paul Sokolovsky
92657c671f
tests/cpydiff/core_import_split_ns_pkgs: Test for split namespace packages.
8 years ago
Paul Sokolovsky
3923f96dc6
tests/cpydiff/core_import_path: Test showing difference in package.__path__.
8 years ago
Paul Sokolovsky
c1b19115e5
tests/cpydiff/core_import_prereg: Fill in cause and workaround.
8 years ago
Paul Sokolovsky
8bb84cc627
tests/cpydiff/core_function_userattr: Clarify, fill in cause and workaround.
8 years ago
Paul Sokolovsky
58ecbc7752
tests/cpydiff/core_arguments: Fill in cause/workaround.
8 years ago
Damien George
465a604547
tests/cpydiff: Add a test for storing iterable to a list slice.
8 years ago
Rami Ali
86c7507233
tests/cpydiff: Add initial set of tests for uPy-CPython differences.
These tests are intended to fail, as they provide a programatic record of
differences between uPy and CPython. They also contain a special comment
at the start of the file which has meta-data describing the difference,
including known causes and known workarounds.
8 years ago