Thanks for the report.
lxml actually does make use of the Python operations for files that you pass it as open file objects (as opposed to file paths). Does that help?
Maybe you could use mock to replace lxml's file writing functions with a wrapper that opens the file from a path before passing it on?
Thanks for the report.
lxml actually does make use of the Python operations for files that you pass it as open file objects (as opposed to file paths). Does that help?
Maybe you could use mock to replace lxml's file writing functions with a wrapper that opens the file from a path before passing it on?