[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules
Colton Leekley-Winslow added the comment: What's the status on this? -- nosy: +lwcolton ___ Python tracker <http://bugs.python.org/issue21600> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes
Colton Leekley-Winslow added the comment: Here is a patch. Please note that in your example \r is replaced by \n per 2.11: http://www.w3.org/TR/REC-xml/#sec-line-ends Also, the patch is only for ElementTree, I will investigate cElementTree but no promises. -- keywords: +patch nosy: +lwcolton Added file: http://bugs.python.org/file36929/17582-etree-whitespace.patch ___ Python tracker <http://bugs.python.org/issue17582> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes
Colton Leekley-Winslow added the comment: I sort of realized, does this mean lxml.etree would now be the offender, for not following 2.11 and leaving the \r as-is? -- ___ Python tracker <http://bugs.python.org/issue17582> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7918] distutils always ignores byte compilation errors
Colton Leekley-Winslow added the comment: Also agree setup allowing broken code an be annoying, but it is necessary to maintain the existing behavior. Maybe we need an additional argument for setup that will in turn pass doraise to py_compile.compile, but retain the default behavior in all other cases? As a work-around to your problem, try "pylint -E" before you build your package, we require it as a part of our build process. -- nosy: +lwcolton ___ Python tracker <http://bugs.python.org/issue7918> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules
Colton Leekley-Winslow added the comment: Patching sys.modules is an idea I got from the official documentation https://docs.python.org/3/library/unittest.mock.html#patch-dict http://mock.readthedocs.org/en/latest/patch.html#patch-dict -- ___ Python tracker <http://bugs.python.org/issue21600> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com