MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_touch_nochange

Method test_touch_nochange

Lib/test/test_pathlib/test_pathlib.py:2362–2367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2360 self.assertRaises(OSError, p.touch, exist_ok=False)
2361
2362 def test_touch_nochange(self):
2363 P = self.cls(self.base)
2364 p = P / 'fileA'
2365 p.touch()
2366 with p.open('rb') as f:
2367 self.assertEqual(f.read().strip(), b"this is file A")
2368
2369 def test_mkdir(self):
2370 P = self.cls(self.base)

Callers

nothing calls this directly

Calls 6

clsMethod · 0.45
touchMethod · 0.45
openMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected