Skip to content

Commit a2d9e3e

Browse files
committed
Merge branch 'main' into mark-first-gc
2 parents 3ae87fa + c0f045f commit a2d9e3e

35 files changed

+453
-244
lines changed

Doc/data/refcounts.dat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,19 @@ PyLong_FromUnsignedLong:unsignedlong:v::
12841284
PyLong_FromVoidPtr:PyObject*::+1:
12851285
PyLong_FromVoidPtr:void*:p::
12861286

1287+
PyLong_IsPositive:int:::
1288+
PyLong_IsPositive:PyObject*:obj:0:
1289+
1290+
PyLong_IsNegative:int:::
1291+
PyLong_IsNegative:PyObject*:obj:0:
1292+
1293+
PyLong_IsZero:int:::
1294+
PyLong_IsZero:PyObject*:obj:0:
1295+
1296+
PyLong_GetSign:int:::
1297+
PyLong_GetSign:PyObject*:v:0:
1298+
PyLong_GetSign:int*:sign::
1299+
12871300
PyMapping_Check:int:::
12881301
PyMapping_Check:PyObject*:o:0:
12891302

Lib/nturl2path.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ def url2pathname(url):
1919
url = url.replace(':', '|')
2020
if not '|' in url:
2121
# No drive specifier, just convert slashes
22-
if url[:4] == '////':
23-
# path is something like ////host/path/on/remote/host
24-
# convert this to \\host\path\on\remote\host
25-
# (notice halving of slashes at the start of the path)
22+
if url[:3] == '///':
23+
# URL has an empty authority section, so the path begins on the
24+
# third character.
2625
url = url[2:]
2726
# make sure not to convert quoted slashes :-)
2827
return urllib.parse.unquote(url.replace('/', '\\'))

Lib/test/test_tkinter/test_misc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ def test_tk_busy(self):
6666
f.tk_busy_forget()
6767
self.assertFalse(f.tk_busy_status())
6868
self.assertFalse(f.tk_busy_current())
69-
with self.assertRaisesRegex(TclError, "can't find busy window"):
69+
errmsg = r"can(no|')t find busy window.*"
70+
with self.assertRaisesRegex(TclError, errmsg):
7071
f.tk_busy_configure()
71-
with self.assertRaisesRegex(TclError, "can't find busy window"):
72+
with self.assertRaisesRegex(TclError, errmsg):
7273
f.tk_busy_forget()
7374

7475
@requires_tk(8, 6, 6)
@@ -87,7 +88,8 @@ def test_tk_busy_with_cursor(self):
8788
self.assertEqual(f.tk_busy_configure('cursor')[4], 'heart')
8889

8990
f.tk_busy_forget()
90-
with self.assertRaisesRegex(TclError, "can't find busy window"):
91+
errmsg = r"can(no|')t find busy window.*"
92+
with self.assertRaisesRegex(TclError, errmsg):
9193
f.tk_busy_cget('cursor')
9294

9395
def test_tk_setPalette(self):

0 commit comments

Comments
 (0)