Commit 3d7eb01
authored
fix(testing): enable REPL launch print test for all non-Darwin platforms (#26157)
# PR: Enable REPL launch print test for all non-Darwin platforms
## Related Issue
Fixes #26156
## Changes Proposed
* **[Test Suite - Shell Integration]**: In
`python_files/tests/test_shell_integration.py`, changed the conditional
guard for `test_print_statement_non_darwin` from `if sys.platform ==
"win32":` to `if sys.platform != "darwin":` so that the REPL launch
print banner is verified on Linux and other non-Darwin Unix environments
in addition to Windows.
* **[Platform Parity]**: Eliminates the test gap where non-Darwin Unix
systems were missing test coverage for the Native REPL launch message.
## How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
* [x] Test A: Pytest run on
`python_files/tests/test_shell_integration.py` passed (7/7 tests
passed).
* [x] Test B: Pyright static analysis on
`python_files/tests/test_shell_integration.py` completed with 0 errors
and 0 warnings.
* [x] Test C: Simulated platform check evaluation verifying
`sys.platform != "darwin"` evaluates to `True` on both Linux and
Windows.
## Checklist
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] My changes generate no new warnings1 parent cd425b7 commit 3d7eb01
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments