Skip to content

Commit b874e04

Browse files
committed
micropython v1.25.0 merge: fix tests, fix typos, fix includes
1 parent 1263d11 commit b874e04

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

ports/litex/common-hal/microcontroller/Pin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#pragma once
88

99
#include "py/mphal.h"
10+
#include "py/obj.h"
1011

1112

1213
typedef struct {

ports/unix/variants/coverage/mpconfigvariant.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ CFLAGS += \
1212
LDFLAGS += -fprofile-arcs -ftest-coverage
1313

1414
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
15-
USER_C_MODULES = $(TOP)/examples/usercmodule
15+
# CIRCUITPY-CHANGE: don't include user C modules
16+
# USER_C_MODULES = $(TOP)/examples/usercmodule
1617

1718
# CIRCUITPY-CHANGE: use CircuitPython bindings and implementations
1819
SRC_QRIO := $(patsubst ../../%,%,$(wildcard ../../shared-bindings/qrio/*.c ../../shared-module/qrio/*.c ../../lib/quirc/lib/*.c))

ports/zephyr-cp/common-hal/microcontroller/Pin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#pragma once
88

99
#include "py/mphal.h"
10+
#include "py/obj.h"
1011

1112
#include <zephyr/drivers/gpio.h>
1213

py/emitnative.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
#endif
9494

9595
#ifndef N_XTENSAWIN
96-
#define N_XTENSWIN (0)
96+
#define N_XTENSAWIN (0)
9797
#endif
9898

9999
#ifndef N_PRELUDE_AS_BYTES_OBJ

tests/extmod/re_sub.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def A():
4949
print(re.sub("a", "b", "c"))
5050

5151
# with maximum substitution count specified
52-
if sys.implementation.name != "micropython":
52+
# CIRCUITPY-CHANGE: was "micropython"
53+
if sys.implementation.name != "circuitpython":
5354
# On CPython 3.13 and later the substitution count must be a keyword argument.
5455
print(re.sub("a", "b", "1a2a3a", count=2))
5556
else:

tests/misc/non_compliant.py.exp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ NotImplementedError
1313
NotImplementedError
1414
NotImplementedError
1515
NotImplementedError
16-
b'\x01\x02'
17-
b'\x01\x00'
1816
NotImplementedError
1917
AttributeError
2018
TypeError

0 commit comments

Comments
 (0)