MCPcopy
hub / github.com/pytest-dev/pytest / test_chmod_simple_int

Method test_chmod_simple_int

testing/_py/test_local.py:1245–1255  ·  view source on GitHub ↗
(self, path1)

Source from the content-addressed store, hash-verified

1243 _ = path1.stat().group
1244
1245 def test_chmod_simple_int(self, path1):
1246 mode = path1.stat().mode
1247 # Ensure that we actually change the mode to something different.
1248 path1.chmod((mode == 0 and 1) or 0)
1249 try:
1250 print(path1.stat().mode)
1251 print(mode)
1252 assert path1.stat().mode != mode
1253 finally:
1254 path1.chmod(mode)
1255 assert path1.stat().mode == mode
1256
1257 def test_path_comparison_lowercase_mixed(self, path1):
1258 t1 = path1.join("a_path")

Callers

nothing calls this directly

Calls 2

statMethod · 0.80
chmodMethod · 0.80

Tested by

no test coverage detected