Commit Graph
35 Commits
Author SHA1 Message Date
youknowdot feca6f2004 Align collections and testing libraries with Python 3.15 (#9192)
* Align collections and testing libraries with Python 3.15

Refresh twelve production modules and canonical tests through scripts/update_lib at CPython d220409a13b77de7a6c30abe16ea90db01528edc. Preserve existing RustPython unittest helpers and test guards. Accept frozendict in native defaultdict and OrderedDict union slots, matching upstream PyAnyDict_Check without changing constructors, factories, or update order.

Validated as a local stack on the exact #9189 regex/dataclasses/typing prerequisite; this dependency avoids eager typing.ByteString deprecation during unittest warning tests.

Assisted-by: OpenAI Codex: model version unavailable

* Synchronize regression runner with doctest subtest reporting

Refresh the canonical test_regrtest consumer and its direct runner/pythoninfo closure through scripts/update_lib at CPython d220409a13b77de7a6c30abe16ea90db01528edc. Preserve both existing expected-failure markers. This aligns the runner test with doctest reporting two failed examples and one skipped example.

Assisted-by: OpenAI Codex: model version unavailable
2026-10-19 20:07:29 +09:00
youknowdot cae11f6965 Sync email, mock, logging, and console behavior with Python 3.15 (#9079)
* Sync library behavior with CPython 3.15.0

Import exact d220409a13b77de7a6c30abe16ea90db01528edc sources through scripts/update_lib migrate, preserving the existing logging test marker. Retain focused Python license and mock property regressions outside Lib. This later Python-stage change requires native binascii wrapcol support; listener DNS runtime validation remains out of scope.

Assisted-by: OpenAI Codex:model identifier unavailable

* Keep the library update limited to upstream files

Remove the two PR-added extra_tests snippets as requested in review. Preserve the script-migrated CPython library files and their canonical tests unchanged.

Assisted-by: OpenAI Codex:model identifier unavailable
2026-10-12 22:17:26 +09:00
Shahar Naveh 79c3575961 Update libregtest to 3.14.6 (#8100)
* Update `test_regrtest.py` to 3.14.6

* Update `libregrtest`

* Update unittest

* Unmark passing test

* Remove `test_set` from env polluters

* Revert "Unmark passing test"

This reverts commit 82b8c1c228.

* Revert "Remove `test_set` from env polluters"

This reverts commit 5a4040da32.

* Mark failing test
2026-06-15 11:19:01 +09:00
Shahar Naveh 9ef3d5776d Update unittest to 3.14.4 (#7752)
* Update `unittest` from 3.14.4

* Update `test_unittest` to 3.14.4

* Unmark passing test
2026-05-01 11:06:24 +00:00
Shahar Naveh b1df45bd09 Update test_unicodedata.py to 3.14.4 (#7750)
* Update `test_unicodedata.py` to 3.14.4

* Add test asset

* Mark failing tests

* Add `expectedSuccess` docorator

* Add support for nee decorator in patch_spec

* Reapply patches
2026-05-01 19:48:41 +09:00
CPython Devleopers dfed341ec8 Upgrade unittest from 3.14.2 2026-01-18 19:56:54 +09:00
Terry Tianlin Luan 4bec6bb6f9 Updated the pkgutil + unittest libraries + the pkgutil, unittest and import tests - v.3.13.11 (#6610)
* Updated unittest + tests

* Updated pkgutil + the associated test

* Updated test_import

* Fixed import + unittest test errors

* Updated test_dll_dependency_import with expectedFailure
2026-01-04 09:54:01 +09:00
Shahar Naveh f32a5b105a Update unittest partially (#6051)
* Update `test_unittest` from 3.13.5

* Remove old `test_unittest.py`
2025-07-31 10:53:39 +09:00
Jeong YunWon 6d996834f3 unittest.expectedFailureIf 2023-03-01 22:31:19 +09:00
Jeong YunWon 4a357ee6e9 adjust successful/failing tests from unittest/test 2023-02-24 14:30:25 +09:00
CPython Developers 40b96bfffd Update unittest from CPython 3.11 2023-02-24 14:24:57 +09:00
Gyubong 38affeaed1 Add expectedFailure to test_warnings 2022-10-05 08:04:48 +09:00
Gyubong 706398c4c8 Update unittest/runner.py from CPython v3.12.0a0 2022-10-05 07:13:25 +09:00
TaeGit 94f1d7d6d8 Update traceback.tb_next to be writable. 2022-08-17 23:27:50 +09:00
Jeong Yunwon e62fdd105c fix windows CI 2022-07-26 04:03:00 +09:00
Jeong Yunwon e32523c632 turn a few more windows tests on 2022-07-25 04:10:59 +09:00
Jeong Yunwon 1bc28033ae skip tb_next initalization 2022-07-18 01:02:15 +09:00
Jeong Yunwon c87c8dcb7d mark failing tests for unittest 2022-07-18 01:00:56 +09:00
CPython developers 799c78670b Update unittest from CPython 3.10.5 2022-07-18 00:59:52 +09:00
Padraic Fanning dfbd8dc8db Unmark passing tests 2022-04-27 22:56:24 -04:00
Dean Li 29c953d9a6 test: update test.support and test_io to 3.10
Initially this is only meant to be a small update for `test_io.py`.
But it turns out that `test.support` need a lot of cleanup especially
for `test.support.warnings_helper`.
2022-04-18 22:50:55 +08:00
Dean Li 6f98288e84 test: use import_helper 2021-11-29 21:03:02 +08:00
snowapril b2eff4ae53 add missing __class_getitem__ from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
Padraic Fanning 253ecda09e Clean up skips in test_unittest 2021-10-19 20:37:35 -04:00
Jim Fasarakis-Hilliard e34198fc00 Remove HEAPTYPE flag from builtins. 2021-09-17 03:30:21 +09:00
Noah 7c58f4a0c8 Fast locals part 3 2020-12-05 16:36:35 -06:00
Noah 4e232a8529 Skip erroring test 2020-08-20 12:26:29 -05:00
Noah 5099255cd0 Revert "Trying revert for regression" 2020-08-20 11:41:21 -05:00
Jeong YunWon 8bfc218b2d Revert "Merge pull request #2106 from RustPython/coolreader18/unittest-tests"
This reverts commit 96926daf6f, reversing
changes made to 230f91582f.
2020-08-20 04:18:21 +09:00
Noah 43e18e496a Skip unsupported tests 2020-08-12 16:17:31 -05:00
Noah f12a78ba23 Add unittest.test and test.test_unittest from CPython 3.7.0 2020-08-12 16:01:05 -05:00
coolreader18 1be2d95142 Change unittest.__main__ to use import os.path 2019-08-15 15:52:30 -05:00
coolreader18 ddd46c6481 Remove test files from unittest 2019-08-06 12:03:01 -05:00
coolreader18 5a7772247d Fix import os.path in unittest.__main__ 2019-08-06 00:08:32 -05:00
coolreader18 df2313c3a6 Add unittest lib files 2019-08-06 00:08:04 -05:00