Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ testUnicodeOpen
Method
testUnicodeOpen
Lib/test/test_io/test_fileio.py:581–585 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
579
os.unlink(TESTFN)
580
581
def
testUnicodeOpen(self):
582
# verify repr works for unicode too
583
f = self.FileIO(str(TESTFN),
"w"
)
584
f.close()
585
os.unlink(TESTFN)
586
587
def
testBytesOpen(self):
588
# Opening a bytes filename
Callers
nothing calls this directly
Calls
3
close
Method · 0.95
str
Function · 0.85
unlink
Method · 0.45
Tested by
no test coverage detected