🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 02:29:40 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pyfakefs
/
pytest_tests
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/pyfakefs/pytest_tests
🔄 Refresh
✏️
Editing: test_fs_with_monkeypatch.py
Read Only
from pyfakefs.fake_filesystem import FakeFileOpen def test_monkeypatch_with_fs(fs, monkeypatch): """Regression test for issue 1200""" fake_open = FakeFileOpen(fs) monkeypatch.setattr("builtins.open", fake_open, raising=False) def test_open(): """Tests if open is poisoned by the above test""" assert "built-in" in str(open)
💾 Save Changes
❌ Cancel