10 Commits

Author SHA1 Message Date
Shahar Naveh
48ad238349 Update some tests to 3.14.5 (#7909)
* Align patches for `test_class.py`

* Update more tests to 3.14.5

* Update `test_math`

* `test_hash.py`

* Update `test_grammar.py`

* Fix failing test

* Restore `test_grammar.py`
2026-05-19 13:31:33 +09:00
김은빈
1b9dc4ef14 Detect list mutation during sort even when list length is unchanged (#7432)
* Detect list mutation during sort even when list length is unchanged

* Use mutation counter instead of capacity check for sort mutation detection

The capacity heuristic missed mutations when `clear()` reset capacity to
0 via `mem::take`. An AtomicU32 counter on PyList, incremented in
`borrow_vec_mut()`, reliably detects all mutations during sort.

* Hold write guard during sort mutation counter reads

* Fix list mutation counter race in `borrow_vec_mut`
2026-03-20 21:40:54 +09:00
ShaharNaveh
c00ccf7a6c Update test_sort.py from 3.14.3 2026-02-08 08:33:45 +09:00
Terry Tianlin Luan
609dbb1439 Downgraded skips in tests (#6716)
* Downgraded skips in tests

* Fixed failing tests

* Fixed test_ftplib + test_socket + test_ssl + test_threaded_import failures

* Removed comments about which tests are run in which environment

* Addressed PR comments

* Annotated skips on failing tests

* Removed unneeded tests

* Removed unneeded sys import from test_ftplib

* Added annotation to test_ftplib

* Readded skipIf to test_cleanup_with_symlink_modes with a more general ENV_POLLUTING_TESTS_WINDOWS

* Addressed PR comments

* Made changes to minimize diff in PR

* Apply suggestion from @youknowone

---------

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
2026-01-15 21:43:22 +09:00
JaeyoungAhn
057d6aa497 Fix tuple comparison to use eq for leading elements 2023-03-25 19:45:55 +09:00
JaeyoungAhn
6baddab4da marked failed case expected failure 2023-03-25 14:00:12 +09:00
JaeyoungAhn
701efe8903 update test_sort from cpython 3.11.2 2023-03-25 13:51:39 +09:00
Jeong YunWon
bcd2cbfb80 remove fixed skipped test from test_sort 2022-08-15 04:24:58 +09:00
Noah
defcbb821c Skip unsupported sort tests 2020-08-26 21:50:23 -05:00
Noah
2a180af0ab Add test.test_sort from CPython 3.8.3 2020-08-26 21:50:01 -05:00