micropython v1.25.0 merge: fix tests, fix typos, fix includes

This commit is contained in:
Dan Halbert 2025-06-21 10:08:24 -04:00
parent 1263d11286
commit b874e04166
6 changed files with 7 additions and 5 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include "py/mphal.h"
#include "py/obj.h"
typedef struct {

View file

@ -12,7 +12,8 @@ CFLAGS += \
LDFLAGS += -fprofile-arcs -ftest-coverage
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
USER_C_MODULES = $(TOP)/examples/usercmodule
# CIRCUITPY-CHANGE: don't include user C modules
# USER_C_MODULES = $(TOP)/examples/usercmodule
# CIRCUITPY-CHANGE: use CircuitPython bindings and implementations
SRC_QRIO := $(patsubst ../../%,%,$(wildcard ../../shared-bindings/qrio/*.c ../../shared-module/qrio/*.c ../../lib/quirc/lib/*.c))

View file

@ -7,6 +7,7 @@
#pragma once
#include "py/mphal.h"
#include "py/obj.h"
#include <zephyr/drivers/gpio.h>

View file

@ -93,7 +93,7 @@
#endif
#ifndef N_XTENSAWIN
#define N_XTENSWIN (0)
#define N_XTENSAWIN (0)
#endif
#ifndef N_PRELUDE_AS_BYTES_OBJ

View file

@ -49,7 +49,8 @@ print(re.sub("(abc)", r"\g<1>\g<1>", "abc"))
print(re.sub("a", "b", "c"))
# with maximum substitution count specified
if sys.implementation.name != "micropython":
# CIRCUITPY-CHANGE: was "micropython"
if sys.implementation.name != "circuitpython":
# On CPython 3.13 and later the substitution count must be a keyword argument.
print(re.sub("a", "b", "1a2a3a", count=2))
else:

View file

@ -13,8 +13,6 @@ NotImplementedError
NotImplementedError
NotImplementedError
NotImplementedError
b'\x01\x02'
b'\x01\x00'
NotImplementedError
AttributeError
TypeError