-
json is messed up in pypy with warnings
-
This is kind of a hack, hope this can be removed once other branch is merged (see code comment)
-
This way, we get the output even in error case to simplify debugging
-
Instead of calling main() in current interpreter, fork a new one using call_and_capture
-
Prevent unwanted FileNotFoundError caused by wrong test code shadow actual msodde output
-
When adapting the test a while ago, Samir forgot that this one test tested with multiple args. That was unnecessary, anyway, so removed them.
-
Running main() within same interpreter capturing SystemExit and sys.stdout/err always causes trouble (at least in unittest). Fork another python process and capture from there, that is easier and cleaner in my view.
-
This is an interesting one since "our" old implementation of is_encrypted claims that the embedded file is still encrypted (which it is not), but the msoffcrypto-is_encrypted gets it right.
-
Type-Field in logging
-
oleobj cannot detect yet that these are open office, but it can now treat them like regular zip files and find embedded objects in them. Samples are harmless, were created by me.
-
Every logging call can have an optional arg type='...' which is ignored when logging to text but shows in json output. The "type" of regular logging output in json is type='msg'. Added 2 messages with different type, adjusted existing test, created 2 new ones.
-
These 4 files contain dde-links to calc.exe and are encrypted with excel's standard password.
-
These are encrypted with the standard password hard-coded into excel to implement a form of write protection
-
oleobj: detect external links