Miss Islington (bot)
bb260c2a21
[3.10] bpo-44630: Fix assertion errors in csv module (GH-27127) (GH-27129)
...
Fix incorrect handling of exceptions when interpreting dialect objects in
the csv module. Not clearing exceptions between calls to
PyObject_GetAttrString() causes assertion failures in pydebug mode (or with
assertions enabled).
Add a minimal test that would've caught this (passing None as dialect, or
any object that isn't a csv.Dialect subclass, which the csv module allows
and caters to, even though it is not documented.) In pydebug mode, the test
triggers the assertion failure in the old code.
Contributed-By: T. Wouters [Google]
(cherry picked from commit 0093876328afa330224c9d887c18dee0b3117852)
Co-authored-by: T. Wouters <thomas@python.org>
Automerge-Triggered-By: GH:gpshead
2021-07-13 16:18:28 -07:00
..
2021-04-17 10:07:19 +02:00
2020-12-25 17:03:37 +02:00
2021-04-16 14:33:10 +02:00
2021-06-23 16:46:25 -07:00
2021-06-21 17:22:02 -07:00
2021-06-21 07:27:26 -07:00
2021-06-23 03:02:40 -07:00
2021-06-18 13:30:53 -07:00
2021-04-06 11:18:41 +09:00
2021-06-13 17:24:11 -07:00
2021-04-02 08:57:05 +09:00
2021-07-01 21:15:47 -07:00
2021-04-17 10:07:19 +02:00
2021-04-29 20:09:08 -07:00
2021-06-30 18:52:25 +01:00
2021-04-21 12:41:19 +01:00
2021-04-21 12:41:19 +01:00
2021-04-21 12:41:19 +01:00
2021-04-21 12:41:19 +01:00
2021-04-21 12:41:19 +01:00
2021-03-03 08:58:57 -08:00
2021-03-29 12:28:14 +09:00
2021-04-17 10:07:19 +02:00
2021-04-29 21:16:28 -07:00
2021-04-29 21:16:28 -07:00
2021-04-29 21:16:28 -07:00
2021-04-17 10:07:19 +02:00
2021-04-17 10:07:19 +02:00
2021-04-17 10:07:19 +02:00
2021-04-17 10:07:19 +02:00
2021-04-17 10:07:19 +02:00
2021-01-02 02:20:25 +09:00
2021-04-04 09:01:23 +09:00
2021-04-17 10:07:19 +02:00
2021-04-23 23:27:14 +02:00
2021-04-17 10:07:19 +02:00
2021-04-17 10:07:19 +02:00
2021-04-19 07:27:10 +02:00
2021-04-17 10:07:19 +02:00
2021-05-01 13:53:57 -07:00
2021-02-28 12:20:50 -06:00
2021-04-02 12:53:46 +09:00
2021-05-12 15:06:34 +01:00
2021-04-02 12:53:46 +09:00
2021-06-23 16:46:25 -07:00
2021-04-10 22:56:28 +02:00
2021-07-10 01:16:15 +01:00
2021-04-11 05:51:35 +01:00
2021-06-25 00:38:01 +01:00
2021-06-25 00:38:01 +01:00
2021-06-30 18:52:25 +01:00
2021-04-02 12:53:46 +09:00
2021-04-02 09:15:21 -07:00
2021-04-02 12:53:46 +09:00
2021-04-02 12:53:46 +09:00
2021-01-13 18:16:40 +02:00
2021-06-22 16:59:53 +03:00
2021-06-23 03:02:40 -07:00
2021-04-29 11:36:04 +09:00
2021-04-04 09:01:23 +09:00
2021-06-07 17:36:19 -07:00
2021-04-14 13:45:22 +02:00
2021-04-29 13:12:51 +01:00
2021-06-23 03:02:40 -07:00
2021-05-02 20:19:51 -07:00
2021-06-21 11:47:16 +01:00
2021-04-02 09:01:57 +09:00
2021-02-08 03:15:51 +00:00
2021-07-13 16:35:30 +02:00
2021-04-04 09:01:23 +09:00
2021-06-21 00:57:07 -07:00
2021-07-13 16:18:28 -07:00
2021-06-23 16:46:25 -07:00
2021-05-03 03:24:53 -04:00
2021-04-04 09:01:23 +09:00
2021-06-23 16:46:25 -07:00
2021-06-13 07:05:28 -07:00
2021-04-12 00:21:22 +02:00
2021-06-23 03:02:40 -07:00
2021-04-30 15:25:43 +02:00
2021-04-29 11:06:03 +09:00
2021-04-04 09:01:23 +09:00
2021-04-30 14:32:47 +01:00
2021-04-28 16:21:55 +01:00
2021-05-05 20:01:21 +02:00
2021-06-23 16:46:25 -07:00
2021-01-20 17:07:21 +01:00
2021-07-03 21:08:42 -07:00
2021-06-12 21:27:02 +01:00
2021-07-10 01:47:33 +01:00
2021-06-21 14:23:13 +02:00
2021-04-01 11:23:03 +09:00
2021-04-01 11:23:03 +09:00
2021-04-05 12:32:35 +09:00
2021-04-27 15:47:16 +09:00
2021-06-23 03:02:40 -07:00
2021-03-21 21:30:55 -05:00
2021-01-05 12:04:10 +00:00
2021-04-12 16:59:30 +01:00
2021-06-25 00:38:01 +01:00
2021-02-20 15:17:18 +01:00
2021-06-23 16:46:25 -07:00
2021-05-03 10:43:00 +03:00
2021-05-22 00:50:11 +02:00
2021-04-12 16:59:30 +01:00
2021-04-28 08:38:14 -07:00
2021-04-15 21:38:45 +01:00
2021-05-06 20:18:42 -07:00
2021-06-08 16:52:23 -07:00
2021-06-22 16:59:53 +03:00
2021-06-23 16:46:25 -07:00
2021-06-23 03:02:40 -07:00
2021-06-23 16:46:25 -07:00
2021-02-01 21:32:50 +01:00
2021-07-03 21:08:42 -07:00
2021-06-18 14:25:42 -07:00
2020-12-19 12:17:08 +02:00
2021-04-19 07:27:10 +02:00
2021-04-05 13:11:23 +09:00
2021-04-29 21:16:28 -07:00
2021-04-06 11:18:41 +09:00
2021-04-14 03:24:33 +02:00
2021-05-17 12:42:08 -07:00
2021-04-06 11:18:41 +09:00
2021-05-18 14:53:57 +01:00
2021-04-06 11:18:41 +09:00
2021-04-12 14:17:40 +02:00
2021-06-25 00:38:01 +01:00
2021-06-22 16:59:53 +03:00
2021-04-06 13:02:22 +09:00
2021-04-04 09:01:23 +09:00
2021-07-08 09:13:06 -07:00
2021-04-30 17:26:45 +01:00
2021-01-08 00:15:22 +01:00
2021-01-31 22:52:56 +00:00
2021-05-01 22:17:01 +02:00
2021-04-28 16:50:17 +01:00
2021-04-29 20:09:08 -07:00
2021-07-07 06:50:41 -07:00
2021-06-25 00:38:01 +01:00
2021-05-21 04:54:56 -07:00
2021-06-25 08:46:23 -07:00
2021-07-08 19:21:22 +01:00
2021-03-29 12:28:14 +09:00
2021-04-03 15:31:15 -07:00
2020-12-31 14:08:03 -05:00
2021-06-25 00:38:01 +01:00
2021-04-21 12:41:19 +01:00
2021-05-02 20:28:43 -04:00
2021-04-28 16:50:17 +01:00
2021-04-13 19:59:24 -04:00
2021-04-04 09:01:23 +09:00
2020-12-30 01:51:24 -08:00
2021-07-03 21:08:42 -07:00
2021-01-19 14:03:12 +01:00
2021-05-08 02:09:29 -07:00
2021-02-01 12:38:44 -05:00
2021-07-03 21:08:42 -07:00
2021-05-03 19:45:30 -07:00
2021-07-03 21:08:42 -07:00
2021-02-12 12:04:46 -08:00
2021-04-16 14:33:10 +02:00
2021-04-09 17:51:22 +02:00
2021-06-23 16:46:25 -07:00
2021-06-23 03:02:40 -07:00
2021-07-09 21:07:35 -07:00
2021-07-03 21:08:42 -07:00
2021-05-20 11:42:00 +01:00
2021-06-25 00:38:01 +01:00
2021-06-25 00:38:01 +01:00
2021-07-03 21:08:42 -07:00
2021-04-16 14:33:10 +02:00
2021-03-28 23:48:05 +01:00
2021-07-03 21:08:42 -07:00
2021-04-23 18:03:17 +01:00
2021-05-24 18:11:12 -07:00
2021-03-04 00:03:44 +00:00
2021-04-29 10:26:53 +02:00
2021-01-09 00:35:01 +01:00
2021-06-24 12:57:55 -07:00
2021-06-24 08:34:28 -07:00
2021-07-08 19:21:22 +01:00
2021-04-30 12:46:15 +02:00
2021-04-27 09:45:55 +01:00
2021-04-27 10:39:01 -07:00
2021-06-24 14:12:11 +02:00
2021-04-12 13:12:36 +02:00
2021-03-14 11:06:56 -07:00
2021-06-23 16:46:25 -07:00
2021-05-09 00:19:43 -07:00
2021-07-08 17:47:12 +01:00
2021-04-29 20:09:08 -07:00
2021-07-03 06:33:16 -07:00
2021-06-26 16:52:28 -07:00
2021-07-03 21:08:42 -07:00
2021-06-23 16:46:25 -07:00
2021-04-12 16:59:30 +01:00
2021-04-28 22:58:44 -07:00
2020-12-29 04:18:42 -08:00
2021-04-23 18:02:47 +01:00
2021-05-05 16:04:38 -07:00
2021-07-03 21:08:42 -07:00
2021-06-29 16:19:06 -07:00
2021-03-31 00:11:29 +03:00
2021-03-29 22:39:31 +09:00
2021-04-27 15:45:31 +09:00
2021-03-08 12:06:02 -08:00
2021-06-23 16:46:25 -07:00
2021-04-27 10:39:01 -07:00