diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-06-06 22:15:44 +1000 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2023-06-08 17:54:28 +1000 |
| commit | a1fbb1980cf90cc58186eac9cc405a97ebd41e64 (patch) | |
| tree | cbce396ba0360d134f82e0287c8b2a03a116ff8a /tests/extmod/timeq_stable.py | |
| parent | 8211d56712301d58970904892da5312b11b2ab7c (diff) | |
extmod/modtimeq: Remove timeq module.
This is a MicroPython-specific module that existed to support the old
version of uasyncio. It's undocumented and not enabled on all ports and
takes up code size unnecessarily.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/extmod/timeq_stable.py')
| -rw-r--r-- | tests/extmod/timeq_stable.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/extmod/timeq_stable.py b/tests/extmod/timeq_stable.py deleted file mode 100644 index b19ea1b3a..000000000 --- a/tests/extmod/timeq_stable.py +++ /dev/null @@ -1,22 +0,0 @@ -try: - from timeq import timeq -except ImportError: - print("SKIP") - raise SystemExit - -h = timeq(10) - -# Check that for 2 same-key items, the queue is stable (pops items -# in the same order they were pushed). Unfortunately, this no longer -# holds for more same-key values, as the underlying heap structure -# is not stable itself. -h.push(100, 20, 0) -h.push(100, 10, 0) - -res = [0, 0, 0] -h.pop(res) -assert res == [100, 20, 0] -h.pop(res) -assert res == [100, 10, 0] - -print("OK") |
