MCPcopy Index your code
hub / github.com/python/cpython / test_touch_nochange

Method test_touch_nochange

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

Source from the content-addressed store, hash-verified

2351 self.assertRaises(OSError, p.touch, exist_ok=False)
2352
2353 def test_touch_nochange(self):
2354 P = self.cls(self.base)
2355 p = P / 'fileA'
2356 p.touch()
2357 with p.open('rb') as f:
2358 self.assertEqual(f.read().strip(), b"this is file A")
2359
2360 def test_mkdir(self):
2361 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