Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6264094

Browse filesBrowse files
committed
Update test
1 parent 6ad0ab4 commit 6264094
Copy full SHA for 6264094

File tree

Expand file treeCollapse file tree

1 file changed

+12
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-2
lines changed

‎Lib/test/test_sys.py

Copy file name to clipboardExpand all lines: Lib/test/test_sys.py
+12-2Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ def test_pystats(self):
12241224
@test.support.cpython_only
12251225
@unittest.skipUnless(hasattr(sys, 'abiflags'), 'need sys.abiflags')
12261226
def test_disable_gil_abi(self):
1227-
self.assertEqual('t' in sys.abiflags, support.Py_GIL_DISABLED)
1227+
self.assertEqual('t' in sys.abiflags, Py_GIL_DISABLED)
12281228

12291229

12301230
@test.support.cpython_only
@@ -1576,11 +1576,21 @@ def get_gen(): yield 1
15761576
# list
15771577
check(list([]), vsize('Pn'))
15781578
if Py_GIL_DISABLED:
1579-
pass
1579+
check(list([1]), vsize('Pn') + 3*self.P)
1580+
check(list([1, 2]), vsize('Pn') + 3*self.P)
1581+
check(list([1, 2, 3]), vsize('Pn') + 3*self.P)
1582+
check(list([1, 2, 3, 4]), vsize('Pn') + 7*self.P)
1583+
check(list([1, 2, 3, 4, 5]), vsize('Pn') + 7*self.P)
1584+
check(list([1, 2, 3, 4, 5, 6]), vsize('Pn') + 7*self.P)
1585+
check(list([1, 2, 3, 4, 5, 6, 7]), vsize('Pn') + 7*self.P)
15801586
else:
15811587
check(list([1]), vsize('Pn') + 2*self.P)
15821588
check(list([1, 2]), vsize('Pn') + 2*self.P)
15831589
check(list([1, 2, 3]), vsize('Pn') + 4*self.P)
1590+
check(list([1, 2, 3, 4]), vsize('Pn') + 4*self.P)
1591+
check(list([1, 2, 3, 4, 5]), vsize('Pn') + 6*self.P)
1592+
check(list([1, 2, 3, 4, 5, 6]), vsize('Pn') + 6*self.P)
1593+
check(list([1, 2, 3, 4, 5, 6, 7]), vsize('Pn') + 8*self.P)
15841594
# sortwrapper (list)
15851595
# XXX
15861596
# cmpwrapper (list)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.