Alex Waygood
|
b88ea4a499
|
Simplify __all__ for unittest and xml.etree (#8029)
|
2022-06-07 12:03:52 -07:00 |
|
Alex Waygood
|
43a9ab08d7
|
Always use TypeAlias when assigning to Any (#8021)
|
2022-06-05 18:16:20 -07:00 |
|
Alex Waygood
|
0ce825b5a8
|
Add unittest features new in Python 3.11 (#8020)
python/cpython@086c6b1
|
2022-06-04 16:27:52 +01:00 |
|
Alex Waygood
|
acc0167dc1
|
Fix several new-in-3.11 stubtest errors (#7973)
|
2022-06-02 18:07:38 -07:00 |
|
Jelle Zijlstra
|
66383ee8e3
|
unittest.mock: target must be a str (#7672)
See [the CPython source](eaa85cb22f/Lib/unittest/mock.py (L1754)). It calls `_get_target`, and [that](eaa85cb22f/Lib/unittest/mock.py (L1594)) does `target.rsplit('.', 1)`.
|
2022-04-21 14:07:55 -07:00 |
|
Alex Waygood
|
a8504f269e
|
Use _typeshed.OptExcInfo in pydoc and unittest (#7668)
|
2022-04-20 21:00:48 +01:00 |
|
Alex Waygood
|
b093c90a94
|
Use TypeAlias for type aliases where possible, part II (#7667)
|
2022-04-20 20:02:47 +01:00 |
|
Alex Waygood
|
97a74bc1aa
|
Import from collections.abc wherever possible (#7635)
|
2022-04-18 12:50:37 +02:00 |
|
Alex Waygood
|
740193a8fc
|
Use TypeAlias where possible for type aliases (#7630)
|
2022-04-15 18:01:00 -07:00 |
|
Alex Waygood
|
da3e69d093
|
stdlib: Improve a bunch of __(a)exit__ methods (#7571)
|
2022-04-01 08:05:25 +02:00 |
|
Alex Waygood
|
1245bbcc8d
|
Use type alias to simplify overloads in unittest.mock (#7563)
|
2022-03-29 08:19:26 +02:00 |
|
Alex Waygood
|
340c6c97ed
|
Add mypy error codes to type: ignores, remove unused ignores (#7504)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
2022-03-19 13:10:00 +00:00 |
|
Alex Waygood
|
3ab250eec8
|
Use PEP 604 syntax wherever possible (#7493)
|
2022-03-16 16:01:33 +01:00 |
|
Alex Waygood
|
f4ae363b56
|
stdlib: correct many pos-or-kw arg names in dunder methods (#7451)
|
2022-03-07 16:40:03 +01:00 |
|
Itai Steinherz
|
b9909b121e
|
Add missing typings to unittest.mock (#7431)
|
2022-03-06 15:43:39 -08:00 |
|
Alex Waygood
|
58e505eeb2
|
Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' (#7374)
|
2022-02-23 23:04:21 +01:00 |
|
Adam Johnson
|
816f13339a
|
Fix unittest.TextTestResult.printErrorList() (#7341)
|
2022-02-21 12:16:31 +02:00 |
|
Adam Johnson
|
bd365f7093
|
Fix unittest.TextTestResult showAll name (#7340)
|
2022-02-21 11:33:45 +02:00 |
|
Alex Waygood
|
1f6c691322
|
Add missing dunder overrides in array, tracemalloc and unittest.mock (#7248)
|
2022-02-17 13:22:33 +01:00 |
|
Alex Waygood
|
5a8b9dafb3
|
Fix various py310 stubtest errors (#7239)
|
2022-02-16 11:47:49 -08:00 |
|
Alex Waygood
|
fbc279e3f5
|
stdlib: Add many missing dunder overrides (#7231)
|
2022-02-16 06:25:47 -08:00 |
|
Alex Waygood
|
f4967618dd
|
Fix positional-only differences in many stdlib modules (#7226)
|
2022-02-15 15:14:06 +01:00 |
|
Alex Waygood
|
1371a1e1fe
|
unittest deprecations have been deferred until 3.12 (#7131)
See https://github.com/python/cpython/pull/30935
|
2022-02-04 15:52:30 -08:00 |
|
Alex Waygood
|
7ccbbdb30a
|
stdlib: Improve many __iter__ and constructor methods (#7112)
|
2022-02-02 19:14:57 +01:00 |
|
Shantanu
|
b88a6f19cd
|
Upgrade black version (#7089)
|
2022-01-30 16:27:06 -08:00 |
|
Alex Waygood
|
45a2dad83c
|
Reduce use of Any in equality methods (#7081)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
|
2022-01-30 00:59:00 +02:00 |
|
Nikita Sobolev
|
20508d05f4
|
Use ParamSpec in unittest.case (#7012)
|
2022-01-25 10:25:28 +01:00 |
|
Nikita Sobolev
|
dc176d70ec
|
Use ParamSpec in unittest.async_case (#7011)
|
2022-01-23 13:54:06 -08:00 |
|
Jelle Zijlstra
|
de5ec6a0d1
|
fix incorrect tuple[T] (#6996)
Found from PyCQA/flake8-pyi#135.
|
2022-01-22 09:37:14 -08:00 |
|
Alex Waygood
|
7d33ff330a
|
Clean up several version-dependent modules (#6885)
|
2022-01-10 05:57:08 -08:00 |
|
Alex Waygood
|
a40d79a4e6
|
Use lowercase type everywhere (#6853)
|
2022-01-08 16:09:29 +01:00 |
|
Sebastian Rittau
|
e77a66aced
|
Update pyright (#6840)
|
2022-01-07 18:58:15 +02:00 |
|
Alex Waygood
|
505ea72641
|
Never explicitly inherit from object in Python 3-only stubs (#6777)
|
2022-01-02 07:24:48 +01:00 |
|
Alex Waygood
|
8d5d2520ac
|
Use PEP 585 syntax wherever possible (#6717)
|
2021-12-28 11:31:43 +01:00 |
|
Alex Waygood
|
975b3e901b
|
Always alias collections.abc.Set (#6712)
|
2021-12-27 17:09:47 +01:00 |
|
Alex Waygood
|
a54e21992c
|
Remove ParamSpec-related # type: ignores (#6703)
|
2021-12-26 15:27:57 +01:00 |
|
Sebastian Rittau
|
3fb2bcd4c1
|
Restore stubtest 0.930 (#6663)
|
2021-12-22 20:18:19 -08:00 |
|
Sebastian Rittau
|
f6e3bd19f3
|
Fix unittest.case for Python < 3.9 (#6605)
_LoggingWatcher and _AssertLogsContext were moved to unittest._log in
Python 3.9, but were in unittest.case until 3.8.
|
2021-12-16 13:36:01 +01:00 |
|
Akuli
|
b3e8073bac
|
Create unittest._log stub and improve _AssertLogsContext (#6428)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
2021-11-30 21:39:14 -08:00 |
|
Shantanu
|
238dff64c9
|
unittest.mock: add decorate_async_callable, use tuple methods (#6438)
Co-authored-by: hauntsaninja <>
|
2021-11-28 21:55:47 -08:00 |
|
Alex Waygood
|
971908ca24
|
Add no_logs parameter to AssertLogsContext (#6426)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2021-11-28 15:25:43 +02:00 |
|
Alex Waygood
|
77725c5ed3
|
Add unittest.AssertNoLogs (#6414)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2021-11-28 12:30:19 +02:00 |
|
Akuli
|
a5bc1e037f
|
Add mypy error codes to '# type: ignore' comments (#6379)
|
2021-11-26 07:07:56 +01:00 |
|
Alex Waygood
|
aa92ca9138
|
Revise unittest stub to reflect removed methods in 3.11 (#6373)
|
2021-11-24 09:43:03 -08:00 |
|
Alex Waygood
|
dc5f6410a8
|
DefaultDict -> defaultdict, typing.ContextManager -> contextlib.AbstractContextManager (#6351)
|
2021-11-21 07:07:35 -08:00 |
|
Alex Waygood
|
029cf555e7
|
Use lowercase set/deque in stdlib subdirectories (#6350)
|
2021-11-20 04:20:25 -08:00 |
|
Akuli
|
994b69ef8f
|
Use lowercase tuple where possible (#6170)
|
2021-10-14 17:18:19 -07:00 |
|
Matthew Suozzo
|
947e851cf8
|
Remove typevar in mock.patch.multiple (#6090)
|
2021-09-30 19:14:10 +02:00 |
|
Matthew Suozzo
|
9efd6521be
|
Fix unittest.mock.patch class decorator annotation. (#6070)
|
2021-09-29 09:27:47 +02:00 |
|
Anton Grübel
|
c54909ab69
|
Use ParamSpec for unittest.signals.removeHandler() (#5905)
|
2021-08-19 18:32:24 +02:00 |
|