[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-12-10 Thread Colton Leekley-Winslow
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

[issue7918] distutils always ignores byte compilation errors

2014-10-14 Thread Colton Leekley-Winslow
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

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2014-10-14 Thread Colton Leekley-Winslow
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/issue17

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2014-10-14 Thread Colton Leekley-Winslow
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

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-10-14 Thread Colton Leekley-Winslow
Colton Leekley-Winslow added the comment: What's the status on this? -- nosy: +lwcolton ___ Python tracker <http://bugs.python.org/issue21600> ___ ___ Pytho