Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ test_rename
Method
test_rename
Lib/test/test_unicode_file_functions.py:160–163 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
158
self.assertEqual(len(f1), len(f2))
159
160
def
test_rename(self):
161
for
name in self.files:
162
os.rename(name,
"tmp"
)
163
os.rename(
"tmp"
, name)
164
165
def
test_directory(self):
166
dirname = os.path.join(os_helper.TESTFN,
Callers
nothing calls this directly
Calls
1
rename
Method · 0.45
Tested by
no test coverage detected