New submission from Niv Ben-David: The unittest.mock module defines a mock_open utility to mock the builtin open function.
During a recent project I found I needed something more. Specifically, mocking different files at the same time, better mocking for operations (like seek, readlines, etc.) among others. The project can also be found on http://github.com/nivbend/mock-open Thanks ---------- components: Library (Lib) files: mock_open.patch keywords: patch messages: 255061 nosy: Niv Ben-David priority: normal severity: normal status: open title: Replacement for unittest.mock.mock_open type: enhancement versions: Python 3.6 Added file: http://bugs.python.org/file41113/mock_open.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25690> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com