Skip to content

Avoid mutating options and settings in test_other.py. NFC - #27674

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:decouple_print_tests
Open

Avoid mutating options and settings in test_other.py. NFC#27674
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:decouple_print_tests

Conversation

@sbc100

@sbc100 sbc100 commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Query em-config CACHE directly in test/test_other.py to determine expected library search paths instead of mutating options.lto and settings.MEMORY64 to call cache.get_lib_dir().

Also, remove top-level imports of tools.cmdline.options and tools.settings.settings from test/test_other.py.

See: #27666

@sbc100
sbc100 requested review from dschuff and kripken September 5, 2026 00:21
Query `em-config CACHE` directly in `test/test_other.py` to determine
expected library search paths instead of mutating `options.lto` and
`settings.MEMORY64` to call `cache.get_lib_dir()`.

Also, remove top-level imports of `tools.cmdline.options` and
`tools.settings.settings` from `test/test_other.py`.

See: emscripten-core#27666
@sbc100
sbc100 force-pushed the decouple_print_tests branch from 6cd5b47 to bb3a0d7 Compare September 5, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant