List of commits:
Subject Hash Author Date (UTC)
bpo-26187: Test that set_trace_callback() is not called multiple times (GH-461) 0e6cb2ea624570ed08c354f1ed1f595dab4192d6 Aviv Palivoda 2017-04-09 09:11:59
Issue #29798: Handle git worktree in patchcheck (#1058) 2abfdf5a81383d3b1ed6b7321903a9a168c373c5 Nick Coghlan 2017-04-09 08:33:03
bpo-29951: Include function name for some error messages in `PyArg_ParseTuple*` (#916) 64c8f705c0121a4b45ca2c3bc7b47b282e9efcd8 Michael Seifert 2017-04-09 07:47:12
Remove invalid comment in urllib.request. (#1054) a2a9ddd923a849124bdd1c484f70f02df6fde0e9 Senthil Kumaran 2017-04-09 06:27:25
Improvements to typing documentation (#967) 45d22c256bce3afcf57f49032a6b20fdec4f26ad Jelle Zijlstra 2017-04-08 16:09:14
bpo-29998: Pickling and copying ImportError now preserves name and path (#1010) b785396ab451b0c9d6ae9ee5a9e56c810209a6cb Serhiy Storchaka 2017-04-08 06:55:07
Expand the PySlice_GetIndicesEx macro. (#1023) b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8 Serhiy Storchaka 2017-04-08 06:53:51
bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843) 205e00c5cfd495a4dc6dae8e8fa0fb828fb3dca9 Serhiy Storchaka 2017-04-08 06:52:59
Fix a minor typo. (#1032) dd9a0a14c89d57e43898d4b866b8c161e4ff8506 Barry Warsaw 2017-04-07 18:18:14
bpo-29958: Minor improvements to zipfile and tarfile CLI. (#944) 150cd1916a59e750ce88c65325de9ef0c42c6cb5 Serhiy Storchaka 2017-04-07 15:56:12
Remove Invalid comment in test_urllib2.py (#1020) fd0cd07a5a3c964c084f4efc5bbcb89dd2193ee6 Senthil Kumaran 2017-04-07 07:19:08
bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (#24) 93b4b47e3a720171d67f3b608de406aef462835c Stuart Berg 2017-04-06 05:19:40
Correct typo in configparser.rst (#1012) 01fa9ae5460b00bf1ced500c797176ebd3fb060d Alex Jordan 2017-04-06 02:21:30
bpo-29962: add math.remainder (#950) a0ce375e10b50f7606cb86b072fed7d8cd574fe7 Mark Dickinson 2017-04-05 17:34:27
Miscellaneous minor fixes of Misc/NEWS formatting. (#1002) a0157b5f11e621f2196af4e918b9f07688a6cd1c Serhiy Storchaka 2017-04-05 09:07:22
Update Argument Clinic generated code for bpo-29878. (#1001) bae6881b4215b2613ad08ef0dc7bed7743c2b8cc Serhiy Storchaka 2017-04-05 09:00:42
bpo-29762: More use "raise from None". (#569) 5affd23e6f42125998724787025080a24839266e Serhiy Storchaka 2017-04-05 06:37:24
bpo-29549: Fixes docstring for str.index (#256) 43ba8861e0ad044efafa46a7cc04e12ac5df640e Lisa Roach 2017-04-05 05:36:22
correct parse_qs and parse_qsl test case descriptions. (#968) 257b980b316a5206ecf6c23b958e2b7c4df4f3de Senthil Kumaran 2017-04-05 04:19:43
bpo-29649: Improve struct.pack_into() boundary error messages (#424) f78b119364b521307237a1484ba5f43f42300898 Andrew Nester 2017-04-04 10:46:25
Commit 0e6cb2ea624570ed08c354f1ed1f595dab4192d6 - bpo-26187: Test that set_trace_callback() is not called multiple times (GH-461)
conn.set_trace_callback() shouldn't be called multiple times when the
schema is changing.

This has indirectly been fixed by using sqlite3_prepare_v2() in bpo-9303.
Author: Aviv Palivoda
Author date (UTC): 2017-04-09 09:11
Committer name: Berker Peksag
Committer date (UTC): 2017-04-09 09:11
Parent(s): 2abfdf5a81383d3b1ed6b7321903a9a168c373c5
Signer:
Signing key:
Signing status: N
Tree: 736e7b8799d50375a64f1bfa21415703100688f2
File Lines added Lines deleted
Lib/sqlite3/test/hooks.py 20 0
Misc/NEWS 4 0
File Lib/sqlite3/test/hooks.py changed (mode: 100644) (index f8ef4d88f3..801a30cc34)
24 24 import unittest import unittest
25 25 import sqlite3 as sqlite import sqlite3 as sqlite
26 26
27 from test.support import TESTFN, unlink
28
27 29 class CollationTests(unittest.TestCase): class CollationTests(unittest.TestCase):
28 30 def CheckCreateCollationNotString(self): def CheckCreateCollationNotString(self):
29 31 con = sqlite.connect(":memory:") con = sqlite.connect(":memory:")
 
... ... class TraceCallbackTests(unittest.TestCase):
248 250 "Unicode data %s garbled in trace callback: %s" "Unicode data %s garbled in trace callback: %s"
249 251 % (ascii(unicode_value), ', '.join(map(ascii, traced_statements)))) % (ascii(unicode_value), ', '.join(map(ascii, traced_statements))))
250 252
253 @unittest.skipIf(sqlite.sqlite_version_info < (3, 3, 9), "sqlite3_prepare_v2 is not available")
254 def CheckTraceCallbackContent(self):
255 # set_trace_callback() shouldn't produce duplicate content (bpo-26187)
256 traced_statements = []
257 def trace(statement):
258 traced_statements.append(statement)
259
260 queries = ["create table foo(x)",
261 "insert into foo(x) values(1)"]
262 self.addCleanup(unlink, TESTFN)
263 con1 = sqlite.connect(TESTFN, isolation_level=None)
264 con2 = sqlite.connect(TESTFN)
265 con1.set_trace_callback(trace)
266 cur = con1.cursor()
267 cur.execute(queries[0])
268 con2.execute("create table bar(x)")
269 cur.execute(queries[1])
270 self.assertEqual(traced_statements, queries)
251 271
252 272
253 273 def suite(): def suite():
File Misc/NEWS changed (mode: 100644) (index 910488af2c..cc0a4d7593)
... ... Extension Modules
307 307 Library Library
308 308 ------- -------
309 309
310 - bpo-26187: Test that sqlite3 trace callback is not called multiple
311 times when schema is changing. Indirectly fixed by switching to
312 use sqlite3_prepare_v2() in bpo-9303. Patch by Aviv Palivoda.
313
310 314 - bpo-29998: Pickling and copying ImportError now preserves name and path - bpo-29998: Pickling and copying ImportError now preserves name and path
311 315 attributes. attributes.
312 316
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main