Repositories / agent-snapshot.git
test_programs/read_proc_dev_special.py
Clone (read-only): git clone http://git.guha-anderson.com/git/agent-snapshot.git
import os
from pathlib import Path
testdata = Path(os.environ["AGENT_SNAPSHOT_TEST_REPO"])
Path("/proc/self/status").read_text()
Path("/dev/null").read_bytes()
fd = os.open(testdata / "runtime.fifo", os.O_RDONLY | os.O_NONBLOCK)
os.close(fd)