Commit 25e4fdb
authored
### Rationale for this change
- The test reads the unused tail of string past size(), which is undefined. libstdc++ keeps that range addressable, but MSVC does not.
- Ensure the check is not run for MSVC. Existing assertions still run, the unused capacity is not asserted on non linux platforms.
- Closes #48094.
### What changes are included in this PR?
- Guard for platform specific behavior.
### Are these changes tested?
- Yes
### Are there any user-facing changes?
- Yes
* GitHub Issue: #48094
Authored-by: Arnav Balyan <arnavbalyan1@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 1fc0e19 commit 25e4fdb
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
0 commit comments