GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — self.assertRaises causes an allocation, so the _testcapi call · python/cpython@191f46a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib/test/test_interpreters
    • test_channels.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/test_interpreters/test_channels.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_interpreters/test_channels.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def test_lock_allocation_failure(self):
3838
import _testcapi
3939

4040
cid = None
41-
_testcapi.set_nomemory(0, 1)
4241
try:
4342
with self.assertRaises(MemoryError):
43+
_testcapi.set_nomemory(0, 1)
4444
cid = _channels.create()
4545
finally:
4646
_testcapi.remove_mem_hooks()

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.