Commit ff3e9a0
refactor: Address reviewer feedback — rename, simplify, remove tests
Per sentrivana's review:
Source changes:
- Rename ASYNC_TRANSPORT_ENABLED -> ASYNC_TRANSPORT_AVAILABLE
- Rename _is_async_transport -> _has_async_transport on _Client
- Use warnings.warn instead of logger.warning for close()/flush()
with async transport
- Restore keep_alive guard in _get_httpcore_pool_options (the
original Http2Transport behavior was intentional, but the reviewer
wants it guarded)
- Add httpcore[asyncio] to tox.jinja for linters/mypy/common
- Revert tox.ini to origin/master (auto-generated, needs regen)
- Revert AGENTS.md lore section
Test removals (~1050 lines):
- Remove ALL test_async_worker_* tests (implementation details)
- Remove ALL test_make_transport_* tests (implementation details)
- Remove all test_handle_response_*, test_update_headers,
test_prepare_envelope_* tests (implementation details or duplicates)
- Remove test_close_async_awaits_kill_task (duplicate)
- Remove test_handle_request_error_basic_coverage (too much mocking)
- Remove test_async_transport_event_loop_closed_scenario (mocking-heavy)
- Remove test_async_transport_get_header_value (no added benefit)
- Remove misc implementation-detail async transport tests
- Apply make_client() simplification suggestions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 025714e commit ff3e9a0
File tree
6 files changed
+58
-1116
lines changed- scripts/populate_tox
- sentry_sdk
- tests
6 files changed
+58
-1116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
1012 | | - | |
| 1012 | + | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1053 | 1052 | | |
1054 | 1053 | | |
1055 | 1054 | | |
| |||
1068 | 1067 | | |
1069 | 1068 | | |
1070 | 1069 | | |
1071 | | - | |
| 1070 | + | |
1072 | 1071 | | |
1073 | 1072 | | |
1074 | 1073 | | |
| |||
1093 | 1092 | | |
1094 | 1093 | | |
1095 | 1094 | | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
| |||
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | | - | |
| 1120 | + | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
553 | 552 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
558 | 556 | | |
559 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
560 | 564 | | |
561 | 565 | | |
562 | 566 | | |
| |||
838 | 842 | | |
839 | 843 | | |
840 | 844 | | |
841 | | - | |
| 845 | + | |
842 | 846 | | |
843 | 847 | | |
844 | 848 | | |
| |||
1120 | 1124 | | |
1121 | 1125 | | |
1122 | 1126 | | |
1123 | | - | |
| 1127 | + | |
1124 | 1128 | | |
1125 | 1129 | | |
1126 | 1130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1833 | 1833 | | |
1834 | 1834 | | |
1835 | 1835 | | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | | - | |
1853 | 1836 | | |
1854 | 1837 | | |
1855 | 1838 | | |
| |||
0 commit comments