Skip to content

Commit fcfed6a

Browse files
jeplerdpgeorge
authored andcommitted
unix/variants/coverage: Enable sys.settrace.
The unix coverage variant should have all features enabled, so they can be tested for coverage. Therefore, enabled `MICROPY_PY_SYS_SETTRACE`. Signed-off-by: Jeff Epler <jepler@gmail.com>
1 parent 2ab06b6 commit fcfed6a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ports/unix/variants/coverage/mpconfigvariant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
// Enable additional features.
4141
#define MICROPY_DEBUG_PARSE_RULE_NAME (1)
42+
#define MICROPY_PY_SYS_SETTRACE (1)
4243
#define MICROPY_TRACKED_ALLOC (1)
4344
#define MICROPY_WARNINGS_CATEGORY (1)
4445
#undef MICROPY_VFS_ROM_IOCTL

tests/ports/unix/extra_coverage.py.exp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ argv atexit byteorder exc_info
6969
executable exit getsizeof implementation
7070
intern maxsize modules path
7171
platform print_exception ps1
72-
ps2 stderr stdin stdout
73-
tracebacklimit version version_info
72+
ps2 settrace stderr stdin
73+
stdout tracebacklimit version version_info
7474
ementation
7575
# attrtuple
7676
(start=1, stop=2, step=3)

0 commit comments

Comments
 (0)