Skip to content

Commit fbc49a8

Browse files
committed
enum: Update references to new lib/enum/ location.
Updated: - ports/stm32/boards/manifest_enum.py to reference lib/enum/enum.py - test_cpython_compat.py to add lib/enum to sys.path All tests still pass with new location. Signed-off-by: Andrew Leech <[email protected]>
1 parent 59819af commit fbc49a8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Include default manifests
2+
include("$(PORT_DIR)/boards/manifest.py")
3+
include("$(PORT_DIR)/boards/manifest_pyboard.py")
4+
5+
# Freeze enum module for size testing
6+
freeze("../../../lib/enum", "enum.py")

test_cpython_compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
identically to CPython's enum module for supported features.
55
"""
66

7+
import sys
8+
9+
sys.path.insert(0, "lib/enum")
710
from enum import Enum, IntEnum
811

912

0 commit comments

Comments
 (0)